Mic*_*cha 21 console ruby-on-rails heroku
我在heroku(cedar-stack)上运行rails控制台时遇到问题.以下每个命令heroku运行控制台,heroku运行rails控制台,heroku运行包exec rails控制台导致以下错误消息:
运行bundle exec rails console
连接到终端...... up,run.8155
中止测试:您的Rails环境正在生产模式下运行!
这个错误信息有点混乱.什么样的测试尝试heroku开始?我只是想启动4周前运行良好的控制台.
Chr*_*tto 41
对于Cedar Stack以及后来:
heroku run rails console --app <app name>
Run Code Online (Sandbox Code Playgroud)
以前的堆栈可以使用此命令:
heroku run console --app <app name>
Run Code Online (Sandbox Code Playgroud)
Jor*_*row 17
如果您有多个环境(登台/生产/等),则需要以下命令:
heroku run -a app-name console
Run Code Online (Sandbox Code Playgroud)
如果您只有一个环境而且从不设置暂存或其他环境,则可以运行:
heroku run console
Run Code Online (Sandbox Code Playgroud)
https://github.com/nemrow/rails_app_cheatsheet/blob/master/heroku.rdoc
归档时间: |
|
查看次数: |
20084 次 |
最近记录: |