如何在Heroku上部署网站? [英] How to deploy a website on Heroku?

查看:121
本文介绍了如何在Heroku上部署网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在命令 git push heroku master 后,我没有在用户名密码 r中输入什么:

I haven't got what to enter in fields Username for and Password for after the command git push heroku master:

C:\code2015>git push heroku master
Username for 'https://git.heroku.com': nemo
Password for 'https://nemo@git.heroku.com':
remote: !       WARNING:
remote: !       Do not authenticate with username and password using git.
remote: !       Run `heroku login` to update your credentials, then retry        
the git command.
remote: !       See documentation for details:       
https://devcenter.heroku.com/articles/http-git#authentication
fatal: Authentication failed for 'https://git.heroku.com/django-blog.git/'

我已阅读文档,但仍不了解.

I have read documents, but do not still understand.

C:\code2015>heroku login
Enter your Heroku credentials.
Email: nemo@yandex.ru
Password (typing will be hidden):
Authentication successful.

推荐答案

对于我来说,当我通过cygwin安装git时,我遇到了身份危机",而我使用了Heroku的工具带:heroku在DOS命令控制台(CMD)中成功登录).

For my situation, I have "identity crises", as I installed git through cygwin, while I used Heroku's toolbelt: heroku login successfully in DOS Command console (CMD).

对于CMD,%HOME%为c:\ Users \ my-id

For CMD, the %HOME% is c:\Users\my-id

对于cygwin,$ HOME是不同的

for cygwin, $HOME is different

我发现_netrc放在$ HOME和%HOME%中

I found that _netrc was placed in both $HOME and %HOME%

我不得不

copy $HOME/_netrc $HOME/.netrc 然后

git push heroku master

成功.

这篇关于如何在Heroku上部署网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆