i am struggling with
bundle exec rake db:migrate (value of
migration_command attribute in deploy resource) . This command fails with a
return value 1. And without any further output or error messages. Also, if
i try the same manually from the current release directory it works. Also ,
i have tried with --trace and -v , still no output. Even further i tried
running /bin/echo ‘hello’ as a migration command and that too fails. I
think somehow the migration_command is not able to execute (irrespective of
the command) anything.
Any idea what is going wrong? following is the deploy resource:
deploy_revision deploy_dir do
migration_command "bundle exec rake db:migrate v"
symlink_before_migrate “config/database.yml” => "config/database.yml"
current_release = release_path
execute "bundle install " do
execute “bundle exec rake assets:precompile” do