2013-07-20 55 views
0

我有一个在Heroku上在线运行的Django-cms网站。我在工作中通过设备在线推送此内容。现在我在家里,我的机器上运行着同样的项目,我做了一些改变,我想让他们活在同一个链接上。 我需要做什么?更新现有的应用程序

git init 
git add . 
heroku create 

要去创建另一个链接,但我想推我的补偿,我已经在同一链接。 有什么想法?

回答

0

确定我没加我的公钥我所做的:

heroku keys:add ~/.ssh/id_rsa.pub 

和它的工作! :)

0

您需要将Heroku git remote添加到您的新应用程序中。从Dashboard中的应用程序页面抓取应用程序的git repo,然后执行操作;

git remote add heroku <git repo here> 

然后你就可以在你能够在另一台机器上推动。

+0

我已经尝试:heroku git:remote -a quiet-coast-9871,我有! Git remote heroku已经存在 但是当我这样做时:git push heroku master 我有:fatal:无法从远程存储库读取。 请确保您有正确的访问权限 和库中存在。 –

+0

我已经试过git remote add heroku [email protected]:quiet-coast-9871.git 和git remote add heroku quiet-coast-9871 它说致命的:远程heroku已经存在。 但我不能推 –

相关问题