Has anyone successfully deployed on heroku from a windows platform?

戏子无情 提交于 2019-12-30 22:53:11

问题


I've been reading all kinds of tutorials on how to deploy rails apps on heroku from windows.

I've tried installing git, heroku gem, generating ssh keys and setting paths and everything...

I get either public key error (without putty) or fatal no auth found (with putty)...


回答1:


After some setup problems -- indeed related to SSH keys -- I've successfully developed Rails/Sinatra applications on Windows and deployed those to Heroku. It works fine.

Generating the keys was a challenge -- I didn't keep notes, but I think I generated the keys with the Git GUI in which you can create a OpenSSH key. That key file is stored in ~/.ssh (so within C:\Documents and Settings\<account>\.ssh) as id_rsa with an accompanying id_rsa.pub. Since I wanted a seperate key for use in Heroku, I've renamed both files of the key pair to id_heroku / id_heroku.pub.

Finally, in the same folder, I've created a file config. That file contains

Host heroku.com
Hostname heroku.com
Port 22
IdentitiesOnly yes
IdentityFile ~/.ssh/id_heroku
TCPKeepAlive yes
User user@example.com



回答2:


Alternately, you may utilize puTTYgen.exe , and paste the OpenSSH public key into a mykey.pub file, and uploading that with heroku keys:add c:\mykey.pub



来源:https://stackoverflow.com/questions/2811387/has-anyone-successfully-deployed-on-heroku-from-a-windows-platform

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!