我被Michael Hartl在Cloud 9上的Ruby on Ralis(第三版)卡住了。
我试图让heroku应用程序工作,但我得到了:
应用错误
应用程序中出现错误,无法提供您的页面。请稍后再试。
如果您是应用程序所有者,请查看日志以了解详细信息。
正如克洛伊建议的那样,我已经更改了“sass rails”版本并更新了“sass rails”
现在提交文件:
source 'https://rubygems.org'
gem 'rails', '4.2.0'
gem 'sass-rails', '5.0.3'
gem 'uglifier', '2.5.3'
gem 'coffee-rails', '4.1.0'
gem 'jquery-rails', '4.0.3'
gem 'turbolinks', '2.3.0'
gem 'jbuilder', '2.2.3'
gem 'sdoc', '0.4.0', group: :doc
group :development, :test do
gem 'pg', '0.17.1'
gem 'byebug', '3.4.0'
gem 'web-console', '2.0.0.beta3'
gem 'spring', '1.1.3'
end
group :production do
gem 'pg', '0.17.1'
gem 'rails_12factor', '0.0.2'
end
正如ecretmaster建议的那样,我已经使用heroku给出的说明从sqlite3迁移到postgesql
捆绑安装:
Your Gemfile lists the gem pg (= 0.17.1) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Using rake 10.4.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.8.2
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.2.0
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile 0.6.2
Using nokogiri 1.6.6.2
Using rails-deprecated_sanitizer 1.0.3
Using rails-dom-testing 1.0.7
Using loofah 2.0.3
Using rails-html-sanitizer 1.0.2
Using actionview 4.2.0
Using rack 1.6.4
Using rack-test 0.6.3
Using actionpack 4.2.0
Using globalid 0.3.6
Using activejob 4.2.0
Using mime-types 2.6.2
Using mail 2.6.3
Using actionmailer 4.2.0
Using activemodel 4.2.0
Using arel 6.0.3
Using activerecord 4.2.0
Using debug_inspector 0.0.2
Using binding_of_caller 0.7.3.pre1
Using columnize 0.9.0
Using debugger-linecache 1.2.0
Using slop 3.6.0
Using byebug 3.4.0
Using coffee-script-source 1.9.1.1
Using execjs 2.6.0
Using coffee-script 2.4.1
Using thor 0.19.1
Using railties 4.2.0
Using coffee-rails 4.1.0
Using multi_json 1.11.2
Using jbuilder 2.2.3
Using jquery-rails 4.0.3
Using pg 0.17.1
Using bundler 1.7.6
Using sprockets 3.4.0
Using sprockets-rails 2.3.3
Using rails 4.2.0
Using rdoc 4.2.0
Using sass 3.4.19
Using tilt 1.4.1
Using sass-rails 5.0.3
Using sdoc 0.4.0
Using spring 1.1.3
Using turbolinks 2.3.0
Using uglifier 2.5.3
Using web-console 2.0.0.beta3
Your bundle is complete!
Gems in the group production were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Heroku现在日志:
2015-11-07T04:01:15.515528+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `require'
2015-11-07T04:01:15.515529+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `<top (required)>'
2015-11-07T04:01:15.515530+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `require'
2015-11-07T04:01:15.515531+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `<top (required)>'
2015-11-07T04:01:15.515532+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `require'
2015-11-07T04:01:15.515537+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
2015-11-07T04:01:15.515538+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `each'
2015-11-07T04:01:15.515539+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `block in require'
2015-11-07T04:01:15.515541+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler.rb:134:in `require'
2015-11-07T04:01:15.515539+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `each'
2015-11-07T04:01:15.515542+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `require'
2015-11-07T04:01:15.515540+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `require'
2015-11-07T04:01:15.515544+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
2015-11-07T04:01:15.515542+00:00 app[web.1]: from /app/config/application.rb:7:in `<top (required)>'
2015-11-07T04:01:15.515543+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `block in server'
2015-11-07T04:01:15.515545+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
2015-11-07T04:01:15.515546+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2015-11-07T04:01:15.515546+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
2015-11-07T04:01:15.515547+00:00 app[web.1]: from bin/rails:8:in `require'
2015-11-07T04:01:15.515548+00:00 app[web.1]: from bin/rails:8:in `<main>'
2015-11-07T04:01:16.156737+00:00 heroku[web.1]: Process exited with status 1
2015-11-07T04:01:16.180172+00:00 heroku[web.1]: State changed from starting to crashed
2015-11-07T09:53:24.813502+00:00 heroku[web.1]: State changed from crashed to starting
2015-11-07T09:53:26.649609+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 3154 -e production`
2015-11-07T09:53:28.640879+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass/rails/helpers.rb:11:in `<top (required)>': uninitialized constant Sass::Script (NameError)
2015-11-07T09:53:28.640889+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `require'
2015-11-07T09:53:28.640890+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `<top (required)>'
2015-11-07T09:53:28.640891+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `require'
2015-11-07T09:53:28.640892+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `<top (required)>'
2015-11-07T09:53:28.640893+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `require'
2015-11-07T09:53:28.640894+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
2015-11-07T09:53:28.640895+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `each'
2015-11-07T09:53:28.640898+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `block in require'
2015-11-07T09:53:28.640899+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `each'
2015-11-07T09:53:28.640899+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `require'
2015-11-07T09:53:28.640902+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `block in server'
2015-11-07T09:53:28.640900+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler.rb:134:in `require'
2015-11-07T09:53:28.640901+00:00 app[web.1]: from /app/config/application.rb:7:in `<top (required)>'
2015-11-07T09:53:28.640901+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `require'
2015-11-07T09:53:28.640904+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
2015-11-07T09:53:28.640903+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
2015-11-07T09:53:28.640905+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
2015-11-07T09:53:28.640904+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2015-11-07T09:53:28.640906+00:00 app[web.1]: from bin/rails:8:in `require'
2015-11-07T09:53:28.640908+00:00 app[web.1]: from bin/rails:8:in `<main>'
2015-11-07T09:53:29.330052+00:00 heroku[web.1]: State changed from starting to crashed
2015-11-07T09:53:29.312397+00:00 heroku[web.1]: Process exited with status 1
2015-11-07T15:29:39.760673+00:00 heroku[web.1]: State changed from crashed to starting
2015-11-07T15:29:41.134773+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 36601 -e production`
2015-11-07T15:29:42.344984+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass/rails/helpers.rb:11:in `<top (required)>': uninitialized constant Sass::Script (NameError)
2015-11-07T15:29:42.344999+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `require'
2015-11-07T15:29:42.345000+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `<top (required)>'
2015-11-07T15:29:42.345000+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `require'
2015-11-07T15:29:42.345001+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `<top (required)>'
2015-11-07T15:29:42.345001+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `require'
2015-11-07T15:29:42.345002+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
2015-11-07T15:29:42.345003+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `each'
2015-11-07T15:29:42.345003+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `block in require'
2015-11-07T15:29:42.345004+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `each'
2015-11-07T15:29:42.345005+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `require'
2015-11-07T15:29:42.345006+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler.rb:134:in `require'
2015-11-07T15:29:42.345006+00:00 app[web.1]: from /app/config/application.rb:7:in `<top (required)>'
2015-11-07T15:29:42.345007+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `require'
2015-11-07T15:29:42.345007+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `block in server'
2015-11-07T15:29:42.345008+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
2015-11-07T15:29:42.345008+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
2015-11-07T15:29:42.345009+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2015-11-07T15:29:42.345009+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
2015-11-07T15:29:42.345010+00:00 app[web.1]: from bin/rails:8:in `require'
2015-11-07T15:29:42.345010+00:00 app[web.1]: from bin/rails:8:in `<main>'
2015-11-07T15:29:42.853092+00:00 heroku[web.1]: State changed from starting to crashed
2015-11-07T15:29:42.835606+00:00 heroku[web.1]: Process exited with status 1
2015-11-07T19:33:16.727397+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/?_c9_id=livepreview0&_c9_host=https://ide.c9.io" host=shrouded-savannah-6091.herokuapp.com request_id=9c198516-5ab2-46fa-bda4-47ee664e0fe1 fwd="90.192.204.238" dyno= connect= service= status=503 bytes=
2015-11-07T21:29:52.097847+00:00 heroku[web.1]: State changed from crashed to starting
2015-11-07T21:29:53.687754+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 31558 -e production`
2015-11-07T21:29:55.589151+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass/rails/helpers.rb:11:in `<top (required)>': uninitialized constant Sass::Script (NameError)
2015-11-07T21:29:55.589184+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `require'
2015-11-07T21:29:55.589186+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass/rails.rb:8:in `<top (required)>'
2015-11-07T21:29:55.589186+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `require'
2015-11-07T21:29:55.589188+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
2015-11-07T21:29:55.589187+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass-rails.rb:1:in `<top (required)>'
2015-11-07T21:29:55.589187+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `require'
2015-11-07T21:29:55.589189+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `block in require'
2015-11-07T21:29:55.589188+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `each'
2015-11-07T21:29:55.589190+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler.rb:134:in `require'
2015-11-07T21:29:55.589191+00:00 app[web.1]: from /app/config/application.rb:7:in `<top (required)>'
2015-11-07T21:29:55.589189+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `each'
2015-11-07T21:29:55.589190+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `require'
2015-11-07T21:29:55.589192+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `block in server'
2015-11-07T21:29:55.589192+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `require'
2015-11-07T21:29:55.589193+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
2015-11-07T21:29:55.589193+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
2015-11-07T21:29:55.589197+00:00 app[web.1]: from bin/rails:8:in `<main>'
2015-11-07T21:29:55.589193+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2015-11-07T21:29:55.589194+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
2015-11-07T21:29:55.589194+00:00 app[web.1]: from bin/rails:8:in `require'
2015-11-07T21:29:56.163038+00:00 heroku[web.1]: State changed from starting to crashed
2015-11-07T21:29:56.172834+00:00 heroku[web.1]: Process exited with status 1
2015-11-07T22:21:03.270746+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/?_c9_id=livepreview0&_c9_host=https://ide.c9.io" host=shrouded-savannah-6091.herokuapp.com request_id=511497b3-bb4b-44e6-b57d-b07c88d59eff fwd="90.192.204.238" dyno= connect= service= status=503 bytes=
2015-11-07T22:43:47.751918+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/?_c9_id=livepreview1&_c9_host=https://ide.c9.io" host=shrouded-savannah-6091.herokuapp.com request_id=2cf95f62-11ed-4a2e-83c0-e1db0e75dc9e fwd="90.192.204.238" dyno= connect= service= status=503 bytes=
2015-11-07T23:33:40.176852+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/?_c9_id=livepreview0&_c9_host=https://ide.c9.io" host=shrouded-savannah-6091.herokuapp.com request_id=73ebcd92-8883-4feb-b8a1-1ca06eeeca59 fwd="90.192.204.238" dyno= connect= service= status=503 bytes=
WARNING: Toolbelt v3.42.21 update available.
在heroku安装中,我看到我有sass rails 5.0.3,但在heroku日志中,它仍然是5.0.1。
$heroku open
:
Opening shrouded-savannah-6091... xprop: unable to open display ''
xprop: unable to open display ''
/usr/bin/xdg-open: 461: /usr/bin/xdg-open: links2: not found
/usr/bin/xdg-open: 461: /usr/bin/xdg-open: links: not found
/usr/bin/xdg-open: 461: /usr/bin/xdg-open: lynx: not found
/usr/bin/xdg-open: 461: /usr/bin/xdg-open: w3m: not found
xdg-open: no method available for opening 'https://shrouded-savannah-6091.herokuapp.com/'
done
WARNING: Toolbelt v3.42.21 update available.
如果当地一切正常,我会:
heroku logs --tail
然后重新加载页面。如果你查看日志,你应该会更好地理解错误到底是什么。
你的问题是heroku讨厌sqlite3
(阅读:不支持也不允许你在应用程序中拥有gem)。以下是他们要说的https://devcenter.heroku.com/articles/sqlite3.相反,我会迁移到postgesql。这对你的应用程序的运行方式没有任何影响,你在切换后也不会注意到任何事情。我使用heroku postgres作为我的数据库。要迁移,你应该按照我上面链接的文章中的说明进行。祝你好运!
您也可以通过按CTRL C
在不关闭窗口的情况下离开终端
更新1
要解决您的sass
错误,您可以使用这个问题。显然这是sass 5.0.1的问题,所以您只需要更新gem。
更新二
在cloud nine中没有更新的Gems可能与这个答案有关。对不起,我对九号云不太了解。
最好先关闭一个问题,然后再问另一个问题,以便将问题分开。你的新错误是
/app/vendor/bundle/ruby/2.0.0/gems/sass-rails-5.0.1/lib/sass/rails/helpers.rb:11:in '<top (required)>': uninitialized constant Sass::Script (NameError)
看起来您没有运行Bundler,因为您仍在使用5.0.1。这可能是Sass gem中的一个错误。尝试使用较旧版本或较新版本的gem。查看您在本地安装的版本。
gem list sass-rails
尝试更新到最新的gem。我有5.0.3,现在最新的是5.0.4。从文件中删除该版本并运行
bundle update
我正在Heroku上部署一个网站,但我在尝试运行“Heroku open”时收到了“应用程序错误”。 我相信我已经成功地将文件推送到Heroku中,这是我的“git推送heroku master”代码的一部分: 当我运行“heroku config-s | grep PATH”时,我得到了 我正在使用Ruby 1.9.3和Rails 4.0.0 文件夹 宝石环境 箱/轨道 垃圾箱/包裹 仓/耙
2020-01-28T01:42:46.028688+00:00 Heroku[web.1]:使用命令启动进程 2020-01-28T01:42:45.000000+00:00APP[api]:生成成功 2020-01-28T01:42:48.451589+00:00Heroku[web.1]:状态从启动更改为崩溃 2020-01-28T01:42:48.433700+00:00 Heroku[W
我在Heroku上设置了一个express项目,在vercel上设置了一个react前端。当我从前端发出请求时,会出现以下错误: 在'https://helpr-dev.herokuapp.com/users/register'从原点'https://helpr-front.vercel.app“”已被CORS策略阻止:对飞行前请求的响应未通过访问控制检查:请求的资源上不存在“access con
我的应用程序https://github.com/amyequinn/weatherapp在终端运行npm启动时运行得很好,但是当将应用程序部署到Heroku时,它崩溃了,我找不到解决方案。错误为H10,应用程序在Get方法时崩溃,状态503.... “2020-05-08T23:13:34.132652+00:00 Heroku[router]:at=error code=h10 desc=”A
我有一个错误应用程序在我的本地电脑上工作,但当我把它发送给heroku时,它崩溃了。错误日志给出错误H10&表示: 编辑: 有没有人以前有过这种情况,并且知道是什么导致了这个问题?我找不到解决办法。 多谢了。
问题内容: 我有一个Node项目,该项目正在使用Bundler和Guard处理我的预编译步骤。这意味着我在项目的根目录中有一个Gemfile以及package.json文件。 我的问题是Heroku认为我的项目是Ruby应用程序,仅因为Gemfile存在。并且抱怨我还没有提交我不想提交的Gemfile.lock。 有没有办法告诉Heroku该应用程序是Node应用程序而不是Ruby应用程序? 问题