相关疑难解决方法(0)

heroku运行控制台返回'错误连接到进程'

我已经将一个rails 3.1应用程序部署到了Heroku Cedar堆栈,我正在尝试执行:

heroku run rake db:migrate
Run Code Online (Sandbox Code Playgroud)

它返回:

Running console attached to terminal... 
Error connecting to process
Run Code Online (Sandbox Code Playgroud)

我也尝试简单地启动控制台:

heroku run console
Run Code Online (Sandbox Code Playgroud)

任何运行命令都会返回相同的错误.

Running console attached to terminal... 
Error connecting to process
Run Code Online (Sandbox Code Playgroud)

查看日志我得到错误代码:

2011-09-25T16:04:52+00:00 app[run.2]: Error R13 (Attach error) -> Failed to attach to process
Run Code Online (Sandbox Code Playgroud)

当我heroku ps看到当前进程时,我可以看到我的尝试正在运行:

Process       State               Command
------------  ------------------  ------------------------------
run.2         complete for 26m    bundle exec rails console
run.3         up for 27s          bundle exec rails console
run.4         up for 3s           bundle exec rake db:create
web.1         up …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails heroku ruby-on-rails-3.1 rails-3.1 cedar

30
推荐指数
2
解决办法
1万
查看次数

通过代理后面的ssh git push heroku master出错

简要背景:
嗨,我是一名大学生(代理10.3.100.211:8080之后),ROR,Git和Heroku的新手,并且一直关注Ruby on Rails教程.我解决了在我的〜/ .ssh/config文件中使用以下配置通过ssh推送git repo的问题(之后它完美地工作):

Host github.com  
Hostname ssh.github.com  
User git  
ProxyCommand corkscrew 10.3.100.211 8080 %h %p  
Port 443  
Run Code Online (Sandbox Code Playgroud)

问题:

但是,在https://devcenter.heroku.com/articles/git上使用heroku进行在线应用程序部署时,我收到以下错误:

$git push heroku master
ssh: connect to host heroku.com port 22: Connection refused  
fatal: The remote end hung up unexpectedly  
Run Code Online (Sandbox Code Playgroud)

我目前的状态是:$ git remote -v

heroku  git@heroku.com:deep-dusk-1030.git (fetch)  
heroku  git@heroku.com:deep-dusk-1030.git (push)  
origin  git@github.com:shaileshgupta/testapp.git (fetch)  
origin  git@github.com:shaileshgupta/testapp.git (push)  
Run Code Online (Sandbox Code Playgroud)

任何人都可以通过github.com帮助我将heroku.com的设置写入我的〜/ .ssh/config文件,以便通过使用PORT 443/22的代理后面的ssh进行无缝连接.

任何帮助将受到高度赞赏.

更新(更多信息) 我尝试了以下设置并遇到以下错误:

组态:

Host heroku.com  
  Hostname ssh.heroku.com  
  User git  
  ProxyCommand corkscrew 10.3.100.211 8080 %h %p  
  Port …
Run Code Online (Sandbox Code Playgroud)

git heroku

11
推荐指数
1
解决办法
4886
查看次数