我试着用监督管理的服务
这是我的配置:
[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发布于 2015-07-10 20:06:32
不应在命令中设置环境,而应在单独的环境值中设置环境。
environment=RAILS_ENV=production看这个问题。
https://stackoverflow.com/questions/31347515
复制相似问题