2014-01-09 40 views
5

我有一個在Heroku上運行的node.js應用程序。我已使用(Windows)命令行通過heroku create初始化應用程序,並且可以訪問生產網站並查看它是否正確運行。一切都很好。Heroku在Windows命令行報告「沒有指定應用程序」

但是當我嘗試運行簡單的命令,像heroku ps,從該應用程序的生命,Heroku的一個「未指定的應用程序」的錯誤響應目錄:

C:\dev\iq>heroku ps 
! No app specified. 
! Run this command from an app folder or specify which app to use with --app APP. 

我在其他帖子閱讀你能避免使用--app APP語法與每一個命令,如果您配置的git像這樣:

git config heroku.remote heroku 

但是,這樣做後,Heroku的仍然抱怨說,應用程序不是簡單的命令行請求中指定了。我已驗證.git/config已經適當地更新:

C:\dev\iq>type .git\config 
[core] 
    repositoryformatversion = 0 
    filemode = false 
    bare = false 
    logallrefupdates = true 
    symlinks = false 
    ignorecase = true 
    hideDotFiles = dotGitOnly 
[remote "heroku"] 
    url = [email protected]:aqueous-mountain-xxxx.git 
    fetch = +refs/heads/*:refs/remotes/heroku/* 
[heroku] 
    remote = heroku 

我剛剛重新安裝最新版本的Heroku的:

C:\dev\iq>heroku --version 
heroku/toolbelt/3.2.2 (i386-mingw32) ruby/1.9.3 

我缺少什麼?

回答

0

根據我的經驗,在運行heroku ps之前,代碼未被推送到heroku(git push heroku master)時發生此錯誤。

3

'heroku'命令需要'--app'參數來定位給定的應用程序,除非您從應用程序文件夾(包含您的應用程序的Git倉庫的克隆)運行它。

相關問題