summaryrefslogtreecommitdiff
path: root/attributes
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-05-02 22:45:46 -0600
committermo khan <mo@mokhan.ca>2015-05-02 22:45:46 -0600
commit60d5f4bdeb4b44c7b01dca7bfaf2c76bace17b95 (patch)
treeae681e9c0241550e1f237702cb11c29ca1819fb0 /attributes
parent065372b3a59cac7b3cac294ac47cc9db90709ac7 (diff)
fix up the nginx recipe.
Diffstat (limited to 'attributes')
-rw-r--r--attributes/default.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/attributes/default.rb b/attributes/default.rb
index c85b791..60b3950 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -1,6 +1,6 @@
default['user']['username'] = 'rails'
default['capistrano']['root_path'] = '/var/www/app'
-default['capistrano']['username'] = default['user']['username']
+default['capistrano']['username'] = node['user']['username']
default['capistrano']['env'] = {
aws: {
access_key: '',
@@ -42,7 +42,10 @@ default['capistrano']['env'] = {
newrelic_key: '',
}
default['delayed_job'] = {
- username: default['user']['username'],
- current_path: "#{default['capistrano']['root_path']}/current",
+ username: node['user']['username'],
+ current_path: "#{node['capistrano']['root_path']}/current",
rails_env: node.chef_environment,
}
+default[:nginx][:domain] = 'www.example.com'
+default[:nginx][:current_path] = "#{node['capistrano']['root_path']}/current"
+default[:nginx][:shared_path] = "#{node['capistrano']['root_path']}/shared_path"