在Heroku上运行bash无法正常工作
问题描述:
我正在尝试在heroku上运行bash进行测试,但失败了
I am trying to run bash on heroku to test it out and it is failing
$ heroku run bash
▸ Error: No app specified
▸ Usage: heroku run --app APP
▸ We don't know which app to run this on.
▸ Run this command from inside an app folder or specify which app to use with --app APP
▸
▸ https://devcenter.heroku.com/articles/using-the-cli#app-commands
$ heroku run --app bash
▸ Usage: heroku run COMMAND
▸
▸ Example: heroku run bash
因此,该示例说明heroku run bash
可以工作,但不能.我没有测功机.我觉得我在这里缺少一些基本的东西...
So, the example says heroku run bash
will work but it doesn't. I have no dynos running. I feel I am missing something basic here...
答
尝试运行命令:
首先,您需要登录,然后查看您的应用程序,然后运行bash
First you need to login, then you to see your apps and finally run bash
$heroku login
插入您的用户名和密码
$heroku apps
=== user@gmail.com Apps
myaplication
然后查看列表中的aps并写
then look at the list aps and write
$heroku run bash --app myaplication