diff options
| author | Henare Degan <henare.degan@gmail.com> | 2012-04-03 14:48:19 +0100 |
|---|---|---|
| committer | Henare Degan <henare.degan@gmail.com> | 2012-04-03 14:51:36 +0100 |
| commit | 799f1e7f5c931cd895690e7c1ac761d005e0d698 (patch) | |
| tree | 8c5c90eb502d9550fa3e1feac150a5e64e9802a1 | |
| parent | ab04d57f99c46a89c39bbd1b026da7094332fb63 (diff) | |
Set $HOME so bundler looks into the right place for its cache
| -rw-r--r-- | chef/cookbooks/alaveteli/recipes/default.rb | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/chef/cookbooks/alaveteli/recipes/default.rb b/chef/cookbooks/alaveteli/recipes/default.rb index f12c0c297..f26db9735 100644 --- a/chef/cookbooks/alaveteli/recipes/default.rb +++ b/chef/cookbooks/alaveteli/recipes/default.rb @@ -60,8 +60,10 @@ bash "bring bundle into the PATH" do end bash "run bundle install" do - cwd node[:root] - code "bundle install" + user node[:user] + cwd node[:root] + environment ({'HOME' => '/home/vagrant'}) + code "bundle install" end bash "bring rake into the PATH" do @@ -70,9 +72,10 @@ bash "bring rake into the PATH" do end bash "create databases" do - cwd node[:root] - user node[:user] - code "rake db:create:all" + user node[:user] + cwd node[:root] + environment ({'HOME' => '/home/vagrant'}) + code "rake db:create:all" end bash "checkout submodules" do @@ -81,9 +84,9 @@ bash "checkout submodules" do code "git submodule update --init" end - bash "run the post-install script" do - cwd node[:root] - user node[:user] - code "./script/rails-post-deploy" + cwd node[:root] + user node[:user] + environment ({'HOME' => '/home/vagrant'}) + code "./script/rails-post-deploy" end |
