在Heroku错误上部署Rails网站

时间:2018-10-30 07:58:17

标签: ruby heroku

试图最终部署到Heroku,但是我收到两条看起来像是危险信号的消息,最终部署无法正常进行。 我看到的错误1(在$ git push heroku master之后)

remote:        Detecting rails configuration failed
remote:        set HEROKU_DEBUG_RAILS_RUNNER=1 to debug

当我使用heroku logs --tail时 错误2:

2018-10-30T07:18:41.859565+00:00 app[web.1]: COMPILATION ERROR: error executing "gcc -shared  -Wl,--compress-debug-sections=zlib -fPIC -O3 -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict -L. -fstack-protector -rdynamic -Wl,-export-dynamic -I /app/vendor/ruby-2.5.0/include/ruby-2.5.0 -I /app/vendor/ruby-2.5.0/include/ruby-2.5.0/x86_64-linux -I /app/vendor/ruby-2.5.0/include -L/app/vendor/ruby-2.5.0/lib -o \"/app/.ruby_inline/ruby-2.5.0/Inline_String_9a6686966a50705d94442f198bc2c408.so\" \"/app/.ruby_inline/ruby-2.5.0/Inline_String_9a6686966a50705d94442f198bc2c408.c\"  ": pid 8 exit 127

错误3,位于日志下方:

2018-10-30T07:18:49.967238+00:00 heroku[web.1]: State changed from starting to crashed
2018-10-30T07:18:51.776458+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=XXXXXXXXXXXX dyno= connect= service= status=503 bytes= protocol=https
2018-10-30T07:19:00.599846+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/"  host=XXXXXXXXXXXX dyno= connect= service= status=503 bytes= protocol=https
2018-10-30T07:19:26.069175+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host= host=XXXXXXXXXXXX dyno= connect= service= status=503 bytes= protocol=https
2018-10-30T07:20:18.694993+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host= host=XXXXXXXXXXXX dyno= connect= service= status=503 bytes= protocol=https
2018-10-30T07:20:22.175572+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host= host=XXXXXXXXXXXX dyno= connect= service= status=503 bytes= protocol=https

这些错误很难解决,因为这对我来说还是第一次。有人熟悉他们吗?

0 个答案:

没有答案