Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
b79a0439
Commit
b79a0439
authored
May 06, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some commands, change nginx port to 80 to avoid redirect problems
parent
6ae724e4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
playbooks/roles/mlapi/tasks/main.yml
+1
-1
playbooks/roles/mlapi/templates/default.j2
+6
-1
playbooks/roles/mlapi/vars/main.yml
+2
-2
No files found.
playbooks/roles/mlapi/tasks/main.yml
View file @
b79a0439
...
...
@@ -89,7 +89,7 @@
shell
:
ls; {{venv_dir}}/bin/python {{ml_api_dir}}/manage.py collectstatic --noinput --settings={{ml_api_settings}} --pythonpath={{ml_api_dir}}
-
name
:
django update_index for ml-service-api
shell
:
ls; {{venv_dir}}/bin/python {{ml_api_dir}}/manage.py update_index --
noinput --settings={{ml_api_settings}} --pythonpath={{ml_api_dir}}"
shell
:
ls; {{venv_dir}}/bin/python {{ml_api_dir}}/manage.py update_index --
settings={{ml_api_settings}} --pythonpath={{ml_api_dir}}
-
name
:
render celery service from template
template
:
src=celery.conf.j2 dest=/etc/init/celery.conf
...
...
playbooks/roles/mlapi/templates/default.j2
View file @
b79a0439
server {
listen {{nginx_listen_port}};
server_name
{{ansible_hostname}}
;
server_name
localhost
;
# https://docs.djangoproject.com/en/dev/howto/static-files/#serving-static-files-in-production
location /static/ { # STATIC_URL
...
...
@@ -15,6 +15,11 @@ server {
}
location / {
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:7999;
}
}
...
...
playbooks/roles/mlapi/vars/main.yml
View file @
b79a0439
...
...
@@ -7,4 +7,4 @@ nltk_data_dir: /usr/share/nltk_data
remote_user
:
ubuntu
ml_branch
:
master
ml_api_branch
:
dev
nginx_listen_port
:
8888
\ No newline at end of file
nginx_listen_port
:
80
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment