How to access heroku git over https behind firewal

2019-04-03 18:12发布

Heroku deployment works like a charm in at my home.

But my office network restricts ssh which blocks the command "git push heroku master" Is there a way to use a https url of the heroku git repository to push my app.

4条回答
Viruses.
2楼-- · 2019-04-03 18:33

Heroku now supports GIT over HTTP (this is a beta feature). Check https://devcenter.heroku.com/articles/http-git. https://git.heroku.com/{app-name}.git will be the URL for your repo.

查看更多
该账号已被封号
3楼-- · 2019-04-03 18:36

Heroku now has full HTTP Git support and is the default option for new apps. If you want to change an existing app from SSH Git to HTTP Git, run:

$ heroku git:remote

and then push like normal:

$ git push heroku master

For details, see the documentation.

查看更多
神经病院院长
4楼-- · 2019-04-03 18:39

This plugin for heroku toolbelt allows you to push over https:

https://github.com/ddollar/heroku-push

查看更多
Fickle 薄情
5楼-- · 2019-04-03 18:52

You can push to heroku git only through ssh.

Update(per @ryanbrainard comment): HTTP Git is now GA https://blog.heroku.com/archives/2014/12/5/http_git_now_generally_available

查看更多
登录 后发表回答