部署我的deploy.rb:
after "deploy:stop","delayed_job:stop"after "deploy:stop","rpush:stop"after "deploy:start","delayed_job:start"after "deploy:start","rpush:start"after "deploy:restart","delayed_job:restart"after "deploy:restart","rpush:restart"namespace :rpush do %w[start stop restart].each do |command| desc "#{command} rpush deamon" task command,roles: :app,except: {no_release: true} do run "cd #{deploy_to}/current && bundle exec rpush #{command}" end endend
现在,问题
>它从开发环境开始.我试着理解this页面告诉我该怎么做,但我做不到.
>我不知道pID是否存储在/ current目录或/ shared目录中.它应该在共享中,以便文件在部署之间保持不变
如果有人这样做(即使以不同的方式),请告诉我如何.
或者,我如何修复我的cap配方和/ initializers / rpush
解决方法 对于CAPIstrano 3:after :finished,:restart_rpush do on roles(:web) do within release_path do with rails_env: fetch(:rails_env) do execute :bundle,:exec,"rpush stop -e #{fetch(:rails_env)}" execute :bundle,"rpush start -e #{fetch(:rails_env)}" end end endend
然后检查tmp和其他目录是否正确链接:
set :linked_dirs,%w{log tmp/pIDs tmp/cache tmp/sockets vendor/bundle public/uploads}总结
以上是内存溢出为你收集整理的ruby-on-rails – 使用capistrano在生产中运行rpush作为守护进程全部内容,希望文章能够帮你解决ruby-on-rails – 使用capistrano在生产中运行rpush作为守护进程所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)