Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM node:4.2.2
- WORKDIR /usr/src
- RUN git clone https://github.com/***.git
- WORKDIR /usr/src/application
- RUN ./install.sh
- EXPOSE 80 3000
- CMD bash -C '/usr/src/application/start.sh'
- web: node bin/www
- 2018-10-23T20:47:44.025502+00:00 app[web.1]: [20:47:44] Finished 'build-app' after 7.11 s
- 2018-10-23T20:47:44.025958+00:00 app[web.1]: [20:47:44] Starting 'bundle-release'...
- 2018-10-23T20:48:07.932228+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
- 2018-10-23T20:48:07.932327+00:00 heroku[web.1]: Stopping process with SIGKILL
- 2018-10-23T20:48:08.058850+00:00 heroku[web.1]: Process exited with status 137
- 2018-10-23T20:48:08.097770+00:00 heroku[web.1]: State changed from starting to crashed
- var app = require('../out/app');
- var debug = require('debug')('server:server');
- var http = require('http');
- /**
- * Get port from environment and store in Express.
- */
- app.set('port', (process.env.PORT || 3000));
- /**
- * Create HTTP server.
- */
- var server = http.createServer(app);
- /**
- * Listen on provided port, on all network interfaces.
- */
- server.listen(app.get('port'), function() {
- listenForNotificationRequests();
- });
- server.on('error', onError);
- server.on('listening', onListening);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement