Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. FROM node:4.2.2
  2.  
  3. WORKDIR /usr/src
  4. RUN git clone https://github.com/***.git
  5.  
  6. WORKDIR /usr/src/application
  7.  
  8. RUN ./install.sh
  9.  
  10. EXPOSE 80 3000
  11. CMD bash -C '/usr/src/application/start.sh'
  12.  
  13. web: node bin/www
  14.  
  15. 2018-10-23T20:47:44.025502+00:00 app[web.1]: [20:47:44] Finished 'build-app' after 7.11 s
  16. 2018-10-23T20:47:44.025958+00:00 app[web.1]: [20:47:44] Starting 'bundle-release'...
  17. 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
  18. 2018-10-23T20:48:07.932327+00:00 heroku[web.1]: Stopping process with SIGKILL
  19. 2018-10-23T20:48:08.058850+00:00 heroku[web.1]: Process exited with status 137
  20. 2018-10-23T20:48:08.097770+00:00 heroku[web.1]: State changed from starting to crashed
  21.  
  22. var app = require('../out/app');
  23. var debug = require('debug')('server:server');
  24. var http = require('http');
  25.  
  26. /**
  27. * Get port from environment and store in Express.
  28. */
  29.  
  30. app.set('port', (process.env.PORT || 3000));
  31.  
  32. /**
  33. * Create HTTP server.
  34. */
  35.  
  36. var server = http.createServer(app);
  37.  
  38. /**
  39. * Listen on provided port, on all network interfaces.
  40. */
  41.  
  42. server.listen(app.get('port'), function() {
  43. listenForNotificationRequests();
  44. });
  45. server.on('error', onError);
  46. server.on('listening', onListening);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement