有没有人从windows平台上成功部署在heroku上? [英] Has anyone successfully deployed on heroku from a windows platform?

查看:146
本文介绍了有没有人从windows平台上成功部署在heroku上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读关于如何在windows上部署heroku的rails应用程序的各种教程。



我尝试安装git,heroku gem,生成ssh密钥并设置路径以及所有内容......

我得到了公钥错误(没有putty)或致命的没有auth发现(与腻子)...

解决方案

设置问题 - 的确与SSH密钥相关 - 我在Windows上成功开发了Rails / Sinatra应用程序并将其部署到Heroku。它的工作正常。

生成密钥是一个挑战 - 我没有记下笔记,但我想我使用Git GUI生成密钥,您可以在其中创建一个OpenSSH密钥。该密钥文件存储在〜/ .ssh 中(所以在 C:\ Documents and Settings \< account> \.ssh )作为 id_rsa 并伴随 id_rsa.pub 。由于我想在Heroku中使用单独的密钥,因此我已将密钥对的两个文件重命名为 id_heroku / id_heroku.pub $ b

最后,在同一个文件夹中,我创建了一个文件 config 。该文件包含

 主机heroku.com 
主机名heroku.com
端口22
IdentitiesOnly yes
IdentityFile〜/ .ssh / id_heroku
TCPKeepAlive yes
User user@example.com


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

解决方案

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

这篇关于有没有人从windows平台上成功部署在heroku上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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