Has anyone successfully deployed on heroku from a windows platform?

后端 未结 2 525
离开以前
离开以前 2021-01-19 04:51

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 settin

2条回答
  •  孤独总比滥情好
    2021-01-19 05:49

    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\\.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
    

提交回复
热议问题