相关疑难解决方法(0)

heroku打开 - 没有指定应用程序

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

rails new myapp
Run Code Online (Sandbox Code Playgroud)

然后使用以下方法创建了heroku堆栈:

heroku create --stack cedar 
Run Code Online (Sandbox Code Playgroud)

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

heroku open
Run Code Online (Sandbox Code Playgroud)

我明白了:

 !    No app specified.
 !    Run this command from an app folder or specify which app to use with --app <app name>
Run Code Online (Sandbox Code Playgroud)

还有这个:

$ heroku open --app myapp
Run Code Online (Sandbox Code Playgroud)

给我这个:

 !    App not found
Run Code Online (Sandbox Code Playgroud)

我错过了一些明显的东西吗

ruby-on-rails heroku

55
推荐指数
4
解决办法
3万
查看次数

来自github的克隆项目.heroku不起作用

我从github克隆了一个项目到我的桌面.我曾经在笔记本电脑上工作过.

但是,在笔记本电脑上heroku似乎不适用于这个应用程序,尽管我安装了它.

第一个问题:

heroku open
>No app specified.
>Run this command from app folder or set it adding --app <app name>
Run Code Online (Sandbox Code Playgroud)

我没有--app在笔记本电脑上指定.因为我猜我heroku create最初在lapop上做过命令.

第二个问题:

git push heroku master
Run Code Online (Sandbox Code Playgroud)

给出错误

fatal: 'heroku' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)

heroku list

 !   This version of the heroku gem has been deprecated.
 !   Please update it by running: gem update heroku
Run Code Online (Sandbox Code Playgroud)

git ruby-on-rails heroku

36
推荐指数
2
解决办法
1万
查看次数

标签 统计

heroku ×2

ruby-on-rails ×2

git ×1