简单的问题。如何在测试环境中使用Foreman启动Rails?
RAILS_ENV=test bundle exec foreman start
//从develop开始
bundle exec foreman -e test start
//炸弹
bundle exec foreman start -e test
//炸弹
发布于 2020-04-21 10:56:13
Foreman必须指向Procfile,或者Procfile必须存在于当前目录中。
# Procfile
rails s然后你就会跑
foreman start -f Procfile通常的做法是保留一个Procfile.test、Procfile.dev等。
# Procfile.test
rails s -e test希望这能有所帮助:)
https://stackoverflow.com/questions/61333746
复制相似问题