gulp部署在heroku中用ts编写的hapi服务器

时间:2018-06-01 14:28:24

标签: typescript heroku deployment gulp

编写一个gulp.babel.js文件,自动将typescript转换为javascript。代码工作得非常好。当我在heroku中部署它时,服务器在控制台中运行。但当我点击url时,它会抛出code = 81 desc =“Blank app”,状态= 502.在heroku仪表板中,它显示正在构建中

以下是运行gulp default后的控制台信息。

[14:00:34] Using gulpfile /tmp/build_f0d352ab88ee7fb003beb657b26666ed/gulpfile.babel.js
   [14:00:34] Starting 'compile'...
   [14:00:34] Starting 'watch'...
   [14:00:34] Finished 'watch' after 31 ms
   [14:00:37] Finished 'compile' after 3.67 s
   [14:00:37] Starting 'serve'...
   [14:00:38] Finished 'serve' after 45 ms
   [14:00:38] Starting 'default'...
   [14:00:38] Finished 'default' after 49 μs
   [14:00:38] [nodemon] 1.17.5
   [14:00:38] [nodemon] to restart at any time, enter `rs`
   [14:00:38] [nodemon] watching: *.*
   [14:00:38] [nodemon] starting `node build/server.js`
   Server Started! on port40389

错误讯息:

2018-06-01T14:10:39.398389+00:00 heroku[router]: at=info code=H81 desc="Blank app" method=GET path="/favicon.ico" host=fierce-wave-37614.herokuapp.com request_id=dc7d845a-1e4d-4605-856e-aef1ff5d269a fwd="49.206.118.84" dyno= connect= service= status=502 bytes= protocol=https

0 个答案:

没有答案