gpt4 book ai didi

ruby-on-rails - 我运行迁移时的 heroku 错误(rails 3.1 cedar 堆栈)

转载 作者:行者123 更新时间:2023-12-04 05:47:29 25 4
gpt4 key购买 nike

这个问题不太可能对任何 future 的访客有帮助;它只与一个小的地理区域、一个特定的时间点或一个非常狭窄的情况相关,通常不适用于互联网的全局受众。如需帮助使这个问题更广泛适用,visit the help center .




9年前关闭。




已解决:是由于网络限制

我刚刚推送了我的应用程序,我需要运行我的迁移文件来初始化数据库

我收到以下错误:我该怎么办?

编辑: heroku run bash -app appname 产生同样的错误

Running rake db:migrate attached to terminal... /Users/stan/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.14.0/lib/heroku/client/rendezvous.rb:33:in `initialize': Operation timed out - connect(2) (Errno::ETIMEDOUT)
from /Users/stan/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.14.0/lib/heroku/client/rendezvous.rb:33:in `open'
from /Users/stan/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.14.0/lib/heroku/client/rendezvous.rb:33:in `block in start'
from /Users/stan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/timeout.rb:58:in `timeout'
from /Users/stan/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.14.0/lib/heroku/client/rendezvous.rb:27:in `start'
from /Users/stan/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.14.0/lib/heroku/command/run.rb:36:in `index'
from /Users/stan/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.14.0/lib/heroku/command.rb:114:in `run'
from /Users/stan/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.14.0/bin/heroku:14:in `<top (required)>'
from /Users/stan/.rvm/gems/ruby-1.9.2-p290/bin/heroku:19:in `load'
from /Users/stan/.rvm/gems/ruby-1.9.2-p290/bin/heroku:19:in `<main>'

这是运行 heroku ps的结果检查我正在运行的进程:
Process State Command 
--------------------------------------------------------
run.1 complete for 24m bundle exec rake db:migrate
run.2 complete for 22m bundle exec rake db:migrate
run.3 complete for 16m bash
run.4 complete for 5m bundle exec rake db:migrate
run.5 complete for 1m bundle exec rake db:migrate
web.1 up for 6m bundle exec rails server -p $PORT

最佳答案

Heroku 在我的一些应用程序上遇到了迁移问题。他们告诉我这样做:

heroku run bash --app appname
rake db:migrate

关于ruby-on-rails - 我运行迁移时的 heroku 错误(rails 3.1 cedar 堆栈),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8426113/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com