2012-12-08 57 views
1

目前我正在試圖以一個應用程序部署到Heroku的 ​​試圖應用程序部署到Heroku的recieving錯誤每次

我下面這些說明究竟

bundle install 
git init 
git add . 
git commit -m "My beautiful dashboard" 

heroku apps:create myapp 

git push heroku master 

,並收到此錯誤每次

git push heroku master 
Counting objects: 441, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (225/225), done. 
Writing objects: 100% (441/441), 503.88 KiB | 445 KiB/s, done. 
Total 441 (delta 170), reused 441 (delta 170) 

-----> Heroku receiving push 
-----> Ruby app detected 
! 
!  Gemfile.lock is required. Please run "bundle install" locally 
!  and commit your Gemfile.lock. 
! 
!  Heroku push rejected, failed to compile Ruby app 

回答

1

您沒有Gemfile.lock文件
嘗試 bundle install然後git commit -am "message you wanna put here"

如下所述,檢查gitignore並刪除/Gemfile.lock並再次提交可以解決您的問題

+0

我在運行捆綁後,我的本地回購的Gemfile.lock的安裝,但是當我運行的git的承諾-am「message here」我收到此#分支主 沒有提交(工作目錄乾淨) – brownythedog

+0

你也想提交鎖文件。 git add gemlike.lock –

+0

我正在運行命令git add gemfile.lock,但是當我嘗試提交它時,我收到上面發佈的錯誤「Nothing to commit」 – brownythedog