【发布时间】:2015-09-29 14:25:34
【问题描述】:
我尝试使用 supervisord 运行 sidekiq 服务
这是我的配置:
[program:my-app-sidekiq-staging]
directory=/srv/www/DOMAIN/current
command=RAILS_ENV=production /usr/local/rvm/bin/rvm ruby-2.2.2@my-app-staging do bundle exec sidekiq -e production -d -C config/sidekiq.yml -L log/sidekiq.log
autostart=true
autorestart=true
redirect_stderr=true
启动后出现致命错误:
can't find command 'RAILS_ENV=production'
我很困惑,因为我的 rails 配置运行时没有错误
directory=/srv/www/DOMAIN/current
command=RAILS_ENV=production /usr/local/rvm/bin/rvm ruby-2.2.2@my-app-staging do bundle exec passenger start -S tmp/unicorn/ilp-app-unicorn.sock --environment production --friendly-error-pages
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-4 deployment sidekiq supervisord