简单的问题。如何在测试环境中使用Foreman启动Rails?
RAILS_ENV=test bundle exec foreman start
//从开发开始
bundle exec foreman -e test start
//炸弹
bundle exec foreman start -e test
//炸弹
领班必须指向Procfile,或者Procfile必须存在于当前目录中。
# Procfile
rails s
然后您要跑步
foreman start -f Procfile
通常是保留Procfile.test,Procfile.dev等。
# Procfile.test
rails s -e test
希望有所帮助:)