Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. -app
  2. -bin
  3. -client
  4. -app
  5. -node_modules
  6. Gruntfile.js
  7. package.json
  8. -config
  9. -db
  10. -lib
  11. -log
  12. -public
  13. gemfile
  14. package.json
  15. Procfile
  16. web.js
  17.  
  18. web: node web.js
  19. worker: bundle exec puma -C config/puma.rb
  20.  
  21. 'use strict';
  22.  
  23. var gzippo = require('gzippo');
  24. var express = require('express');
  25. var nodeApp = express();
  26.  
  27. nodeApp.use(express.logger('dev'));
  28. nodeApp.use(gzippo.staticGzip('' + __dirname + '/client/app'));
  29. nodeApp.listen(process.env.PORT || 5000);
  30.  
  31. threads_count = Integer(ENV['RAILS_MAX_THREADS'] || 5)
  32. threads threads_count, threads_count
  33.  
  34. preload_app!
  35.  
  36. rackup DefaultRackup
  37. port ENV['PORT'] || 3000
  38. environment ENV['RACK_ENV'] || 'development'
  39.  
  40. on_worker_boot do
  41. # Worker specific setup for Rails 4.1+
  42. # See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
  43. ActiveRecord::Base.establish_connection
  44. end
  45.  
  46. > heroku logs --tail
  47.  
  48. 2017-09-24T22:37:37.260979+00:00 heroku[web.1]: Starting process with command `node web.js`
  49. 2017-09-24T22:37:41.010376+00:00 heroku[web.1]: State changed from starting to up
  50. 2017-09-24T22:41:54.611070+00:00 heroku[worker.1]: Starting process with command `bundle exec puma -C config/puma.rb`
  51. 2017-09-24T22:41:55.153420+00:00 heroku[worker.1]: State changed from starting to up
  52. 2017-09-24T22:41:56.663538+00:00 app[worker.1]: Puma starting in single mode...
  53. 2017-09-24T22:41:56.663556+00:00 app[worker.1]: * Version 3.10.0 (ruby 2.2.4-p230), codename: Russell's Teapot
  54. 2017-09-24T22:41:56.663557+00:00 app[worker.1]: * Min threads: 5, max threads: 5
  55. 2017-09-24T22:41:56.663558+00:00 app[worker.1]: * Environment: production
  56. 2017-09-24T22:41:58.244135+00:00 app[worker.1]: * Listening on tcp://0.0.0.0:14499
  57. 2017-09-24T22:41:58.244360+00:00 app[worker.1]: Use Ctrl-C to stop
  58.  
  59. 2017-09-24T22:47:25.175045+00:00 heroku[router]: at=info method=POST path="/api/authenticate" host=infinite-ocean-77136.herokuapp.com request_id=6785cce6-4a48-4d34-
  60. af73-3178320a5d32 fwd="191.85.143.39" dyno=web.1 connect=0ms service=2ms status=404 bytes=228 protocol=https
  61. 2017-09-24T22:47:25.174902+00:00 app[web.1]: POST /api/authenticate 404 0.326 ms - 30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement