heroku开放 - 没有指定应用程序 [英] heroku open - no app specified

查看:166
本文介绍了heroku开放 - 没有指定应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚创建了一个简单的Rails应用程序,使用

  rails new myapp 



然后使用以下命令创建heroku堆栈:

  heroku create --stack cedar 

但是当我尝试在Heroku上打开应用程序时:

  heroku open 

我得到:

 !未指定应用程序。 
!从应用程序文件夹运行此命令或指定要使用的应用程序--app< app name>

与此:

  $ heroku open --app myapp 

给我这个:

 !应用程序未找到

我是否错过了某些明显的东西?

解决方案

如果你在Heroku上有一个现有的应用程序,并且你没有收到应用程序指定的消息,你可以通过在你的本地终端上运行这个消息来纠正它。 b

heroku git:remote -a MyHerokuAppName


I've just created a simple Rails app using

rails new myapp

then created the heroku stack using:

heroku create --stack cedar 

But when I try opening the app on Heroku using:

heroku open

I get:

 !    No app specified.
 !    Run this command from an app folder or specify which app to use with --app <app name>

And this:

$ heroku open --app myapp

gives me this:

 !    App not found

Am I missing something obvious?

解决方案

If you have an existing app on Heroku and you are getting this no app specified message, you can correct it by running this on your local terminal:

heroku git:remote -a MyHerokuAppName

这篇关于heroku开放 - 没有指定应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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