我刚刚创建了一个简单的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)
我错过了一些明显的东西吗
我从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)