gpt4 book ai didi

ruby-on-rails - Heroku Rails应用程序崩溃

转载 作者:行者123 更新时间:2023-12-03 16:32:23 26 4
gpt4 key购买 nike

将我的应用程序部署到heroku时遇到问题

heroku日志

2012-07-20T22:54:29+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:587:in `block in <class:Engine>'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/config.ru:4:in `block in <main>'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/server.rb:46:in `app'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-07-20T22:54:29+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
2012-07-20T22:54:29+00:00 app[web.1]: from script/rails:6:in `require'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:55:in `block in <top (required)>'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:50:in `<top (required)>'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/server.rb:70:in `start'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:50:in `tap'
2012-07-20T23:03:33+00:00 heroku[router]: Error H10 (App crashed) -> GET peaceful-reef-1889.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-07-20T23:03:35+00:00 heroku[router]: Error H10 (App crashed) -> GET peaceful-reef-1889.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=

https://github.com/Envek/taurus该应用本身
在本地主机上,它工作完美。
谁能帮我解决这个错误?

最佳答案

查看以下错误行:

2012-07-20T23:39:09+00:00 app[web.1]: fatal: Not a git repository (or any of the parent directories): .git



可能您没有在本地初始化您的仓库。
尝试:
git init
git add .
git commit -m 'First commit'

之后,部署到heroku。

关于ruby-on-rails - Heroku Rails应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11588284/

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