[英]Can I run my heroku app in Test/Development environment
I was trying to run my test cases on heroku. 我试图在heroku上运行测试用例。 Fund many blogs/answers telling how to run staging/custom environment on heroku.But whenever I run
heroku run rspec spec/
it returns you are running production environment
(not exact error). 基金许多博客/答案告诉如何在heroku.But运行升级/定制的环境中,每当我跑
heroku run rspec spec/
返回you are running production environment
(没有确切的错误)。
So my qustion is not how to run staging/custom evironment on heroku but when I login into heroku rails console, I should be able to see Rails.env #=> test
Or staging or whatever. 所以我的问题不是如何在heroku上运行登台/自定义环境,而是当我登录到Heroku Rails控制台时,我应该能够看到
Rails.env #=> test
或staging或其他内容。 Any help is appreciable. 任何帮助都是可观的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.