2011-12-15 120 views
2

試圖推向heroku。無法推送到heroku

當我輸入:heroku創建

得到此消息。

!沒有指定帳戶。 !
!使用--account 運行此命令!
!您還可以將它作爲git config屬性添加到: !混帳配置heroku.account工作

使用Rails 3.1.1

幫助,將不勝感激。

回答

1

gem install heroku

然後上傳RSA GitHub上的關鍵的Heroku到

$ heroku keys:add 
Uploading ssh public key /Users/adam/.ssh/id_rsa.pub 

一旦你在Heroku的和github上使用命令配置的密鑰所有的代碼去github上,並從那裏來的Heroku

git push heroku master 

很快你就會看到這些消息

-----> Heroku receiving push 
-----> Ruby/Rails app detected 
-----> Detected Rails is not set to serve static_assets