heroku [router]:at =错误代码= H20 desc =“应用程序启动超时”,at =错误代码= H10 desc =“应用程序崩溃”

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

标签: heroku webpack webpack-4 heroku-cli

我已经使用webpack 4响应了应用程序! 试图将我的应用程序放到heroku上,但崩溃了,我认为问题可以与我的webpack配置有关...

这是我的 webpack.config.js

const HtmlWebPackPlugin = require("html-webpack-plugin");

const htmlWebpackPlugin = new HtmlWebPackPlugin({
  template: "./src/index.html",
  filename: "./index.html"
});

module.exports = {
     devServer: {
         inline:true,
         port: 8080
     },
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        use: {
          loader: "babel-loader"
        }
      },
      {
        test: /\.less$/,
        use: [
          {
            loader: "style-loader"
          },
          {
            loader: "css-loader"
          },
          {
            loader: "less-loader"
          }
        ]
      },
      {
        test: /\.(png|jpg|gif)$/,
        use: [
          {
            loader: "file-loader",
            options: {}
          }
        ]
      }
    ]
  },
  plugins: [htmlWebpackPlugin]
};

顺便说一下,这些是我的错误

2018-07-30T10:32:39.731523+00:00 app[web.1]:     [./node_modules/webpack/buildin/global.js] [1m(webpack)/buildin/global.js[39m[22m 509 bytes {[1m[33m0[39m[22m}[1m[32m [built][39m[22m
2018-07-30T10:32:39.731524+00:00 app[web.1]:     [./node_modules/webpack/buildin/module.js] [1m(webpack)/buildin/module.js[39m[22m 519 bytes {[1m[33m0[39m[22m}[1m[32m [built][39m[22m
2018-07-30T10:32:39.731533+00:00 app[web.1]: ℹ 「wdm」: Compiled successfully.
2018-07-30T10:33:04.077462+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=sleepy-sands-23710.herokuapp.com request_id=57b75c0e-7cd6-412e-b704-3d9ec595067a fwd="188.115.167.148" dyno= connect= service= status=503 bytes= protocol=https
2018-07-30T10:33:33.819119+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2018-07-30T10:33:33.819119+00:00 heroku[web.1]: Stopping process with SIGKILL
2018-07-30T10:33:33.931546+00:00 heroku[web.1]: Process exited with status 137
2018-07-30T10:33:33.944861+00:00 heroku[web.1]: State changed from starting to crashed
2018-07-30T10:33:34.383674+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=sleepy-sands-23710.herokuapp.com request_id=18f351b1-7de0-4c4f-b448-00a66c3e57e2 fwd="188.115.167.148" dyno= connect= service= status=503 bytes= protocol=https
2018-07-30T10:33:35.003322+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=sleepy-sands-23710.herokuapp.com request_id=b0af72ac-1cc5-4e43-b5f9-6b87d6c5fe84 fwd="188.115.167.148" dyno= connect= service= status=503 bytes= protocol=https

我不认为有必要拥有收藏夹图标,所以问题不是因为这个...

0 个答案:

没有答案