|
28 | 28 |
|
29 | 29 | # write out local settings for db access, etc. |
30 | 30 |
|
31 | | -template "#{controller_dir}/deis/local_settings.py" do |
| 31 | +template "#{controller_dir}/controller/deis/local_settings.py" do |
32 | 32 | user username |
33 | 33 | group group |
34 | 34 | mode 0644 |
35 | 35 | source 'local_settings.py.erb' |
36 | | - variables :debug => node.deis.controller.debug, |
| 36 | + variables :debug => node.deis.controller.debug, |
37 | 37 | :secret_key => node.deis.controller.secret_key, |
38 | 38 | :db_name => node.deis.database.name, |
39 | 39 | :db_user => node.deis.database.user |
|
51 | 51 | code "virtualenv --distribute venv" |
52 | 52 | creates "#{controller_dir}/venv" |
53 | 53 | action :nothing |
54 | | - subscribes :run, "git[#{controller_dir}]", :immediately |
| 54 | + subscribes :run, "git[#{controller_dir}]", :immediately |
55 | 55 | end |
56 | 56 |
|
57 | 57 | bash 'deis-controller-pip-install' do |
|
60 | 60 | cwd controller_dir |
61 | 61 | code "source venv/bin/activate && pip install -r requirements.txt" |
62 | 62 | action :nothing |
63 | | - subscribes :run, "git[#{controller_dir}]", :immediately |
| 63 | + subscribes :run, "git[#{controller_dir}]", :immediately |
64 | 64 | end |
65 | 65 |
|
66 | 66 | # NOTE: collectstatic and other subcommands must be run after local_settings |
|
71 | 71 | cwd controller_dir |
72 | 72 | code "source venv/bin/activate && ./manage.py collectstatic --noinput" |
73 | 73 | action :nothing |
74 | | - subscribes :run, "git[#{controller_dir}]", :immediately |
| 74 | + subscribes :run, "git[#{controller_dir}]", :immediately |
75 | 75 | end |
76 | 76 |
|
77 | 77 | # write out upstart daemon |
|
100 | 100 | mode 0644 |
101 | 101 | source 'deis-worker.conf.erb' |
102 | 102 | variables :home => node.deis.controller.dir |
103 | | - notifies :restart, "service[deis-worker]", :delayed |
| 103 | + notifies :restart, "service[deis-worker]", :delayed |
104 | 104 | end |
105 | 105 |
|
106 | 106 | service 'deis-worker' do |
|
0 commit comments