在Heroku上运行bash无法正常工作 [英] Running bash on heroku won't work

查看:120
本文介绍了在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 

这篇关于在Heroku上运行bash无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆