Commit 5a61ad41 by vik

Update playbook to work with elb/nginx

parent 432db79b
......@@ -3,6 +3,7 @@
service: name=celery state=stopped
service: name=nginx state=stopped
service: name=ml-service-api state=stopped
sudo: True
- name: create mlapi application config env.json file
template: src=env.json.j2 dest=$app_base_dir/env.json
......@@ -102,4 +103,5 @@
- name: start up services
service: name=celery state=started
service: name=nginx state=started
service: name=ml-service-api state=started
\ No newline at end of file
service: name=ml-service-api state=started
sudo: True
\ No newline at end of file
server {
listen 80;
server_name {{ml_api_elb_url}};
listen 8888;
server_name {{ansible_hostname}};
# https://docs.djangoproject.com/en/dev/howto/static-files/#serving-static-files-in-production
location /static/ { # STATIC_URL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment