From 1985c1a45bdfd5990c001bc4292936d47398544f Mon Sep 17 00:00:00 2001 From: Kenneth Matovu Date: Tue, 24 Mar 2015 13:21:54 +0300 Subject: [PATCH 1/2] path convention includes country name --- chef/cookbooks/supervisor/recipes/default.rb | 2 +- .../cookbooks/supervisor/templates/default/supervisord.conf.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chef/cookbooks/supervisor/recipes/default.rb b/chef/cookbooks/supervisor/recipes/default.rb index 5ed6968..f718e9a 100644 --- a/chef/cookbooks/supervisor/recipes/default.rb +++ b/chef/cookbooks/supervisor/recipes/default.rb @@ -11,7 +11,7 @@ source "supervisord.erb" end -template "/var/www/eums/eums/celery.py" do +template "/var/www/eums/somalia/eums/celery.py" do source "celery.py.erb" variables({ :celery_settings => node['celery_settings'] diff --git a/chef/cookbooks/supervisor/templates/default/supervisord.conf.erb b/chef/cookbooks/supervisor/templates/default/supervisord.conf.erb index 81df164..9d66db3 100644 --- a/chef/cookbooks/supervisor/templates/default/supervisord.conf.erb +++ b/chef/cookbooks/supervisor/templates/default/supervisord.conf.erb @@ -25,7 +25,7 @@ serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket [program:celery] command = /var/www/env/eums/bin/celery worker -B --app=eums.celery --loglevel DEBUG process_name = eums_celery -directory = /var/www/eums/ +directory = /var/www/somalia/eums/ priority = 50 redirect_stderr = true stdout_logfile=/var/log/uwsgi/app/celeryd.log From d1c21e6607ff1a841892654f0598ac115584e257 Mon Sep 17 00:00:00 2001 From: Kenneth Matovu Date: Tue, 24 Mar 2015 13:25:03 +0300 Subject: [PATCH 2/2] path convention includes country name --- chef/cookbooks/supervisor/recipes/default.rb | 2 +- .../supervisor/templates/default/supervisord.conf.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chef/cookbooks/supervisor/recipes/default.rb b/chef/cookbooks/supervisor/recipes/default.rb index f718e9a..40e8c8c 100644 --- a/chef/cookbooks/supervisor/recipes/default.rb +++ b/chef/cookbooks/supervisor/recipes/default.rb @@ -11,7 +11,7 @@ source "supervisord.erb" end -template "/var/www/eums/somalia/eums/celery.py" do +template "/var/www/eums/zimbabwe/eums/celery.py" do source "celery.py.erb" variables({ :celery_settings => node['celery_settings'] diff --git a/chef/cookbooks/supervisor/templates/default/supervisord.conf.erb b/chef/cookbooks/supervisor/templates/default/supervisord.conf.erb index 9d66db3..0b5bcf2 100644 --- a/chef/cookbooks/supervisor/templates/default/supervisord.conf.erb +++ b/chef/cookbooks/supervisor/templates/default/supervisord.conf.erb @@ -23,9 +23,9 @@ serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket [program:celery] -command = /var/www/env/eums/bin/celery worker -B --app=eums.celery --loglevel DEBUG +command = /var/www/env/zimbabweEums/bin/celery worker -B --app=eums.celery --loglevel DEBUG process_name = eums_celery -directory = /var/www/somalia/eums/ +directory = /var/www/zimbabwe/eums/ priority = 50 redirect_stderr = true stdout_logfile=/var/log/uwsgi/app/celeryd.log