There seems to be a bug when deploying a rails application developed
in windows to a linux box. The rake deploy command attempts to run the
command “/install/path/current/script/process/reaper” but the files do
not have the execute bit set.
What can I do to make sure either the execute bit is run or prepend
the command with sh or ruby?
There’s probably an easier way to do it, but I added a task to
deploy.rb:
Makes reaper and dispatch.fcgi executable
task :after_update_code, :roles => [:web, :db, :app] do
run “chmod 744 #{release_path}/script/process/reaper”
run “chmod 744 #{release_path}/script/*”
run “chmod 744 #{release_path}/public/dispatch.fcgi”
end
– Will
Tim U. wrote:
There seems to be a bug when deploying a rails application developed
in windows to a linux box. The rake deploy command attempts to run the
command “/install/path/current/script/process/reaper” but the files do
not have the execute bit set.
What can I do to make sure either the execute bit is run or prepend
the command with sh or ruby?