extend /usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:. to make sure that 'rake' can be found on production site

This commit is contained in:
Roland 2011-05-15 21:30:56 +02:00
parent 2fb31549a8
commit a50d47f2dd

View file

@ -21,6 +21,11 @@ role :app, "railshosting.de" # This may be the same as
role :db, "railshosting.de", :primary => true # This is where Rails migrations will run
# role :db, "railshosting.de"
# extend $PATH to make sure that 'rake' can be found.
set :default_environment {
'PATH' => "/var/www/htdocs/web1/.gem/ruby/1.9.1/bin/:$PATH"
}
# copy shared files after update
task :update_config, :roles => :app do
run "cp -Rf #{shared_path}/config/* #{release_path}/config/"