ruby on rails - openshift deployment gets stuck executing a rake task in a deploy hook -
so i'm having weird issue when deploying rails app on openshift. deployment process gets stuck executing rake task in deploy hook, looks this:
pushd ${openshift_repo_dir} > /dev/null ln -nfs ${openshift_data_dir}/shared/updates ${openshift_repo_dir}/public/updates ln -nfs ${openshift_data_dir}/shared/downloads ${openshift_repo_dir}/public/downloads ln -nfs ${openshift_data_dir}/shared/uploads ${openshift_repo_dir}/public/uploads echo "exec bundle install --no-deployment" bundle install --no-deployment --path=vendor/bundle echo "exec rake db:migrate rails_env=${rails_env:-production}" bundle exec rake db:migrate rails_env=${rails_env:-production} echo "exec rake assets:precompile rails_env=${rails_env:-production}" bundle exec rake assets:precompile rails_env=${rails_env:-production} popd > /dev/null sometimes passes fine if kill deploy script, log in box, run deploy hook manually , restart passenger. though, hook script freezes if rake task waiting input. after re-running script commands step step, fine. guess there runtime exceptions happening don't see reason, couldn't find means trace culprit.
i'm annoyed because of downtime caused , necessity manually perform tasks supposed automated. have thought might happening?
why don't seek redirecting output of scripts log file in $openshift_data_dir can see going on? bundle exec rake assets:precompile rails_env=${rails_env:-production} >>$openshift_data_dir/deploy.log 2>&1
ruby-on-rails openshift
No comments:
Post a Comment