Advertisement
Guest User

Untitled

a guest
Dec 29th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.29 KB | None | 0 0
  1. # Create a Device table if it doesn't exist
  2. DB.create_table? :Device do
  3. primary_key :reg_id
  4. String :user_id
  5. String :reg_token
  6. String :os, :default => 'android'
  7. end
  8.  
  9. default: &default
  10. adapter: postgresql
  11. encoding: unicode
  12. pool: 5
  13.  
  14. development:
  15. <<: *default
  16. database: ruby-getting-started_development
  17. test:
  18. <<: *default
  19. database: ruby-getting-started_test
  20. production:
  21. <<: *default
  22. database: ruby-getting-started_production
  23. username: ruby-getting-started
  24. password: <%= ENV['RUBY-GETTING-STARTED_DATABASE_PASSWORD'] %>
  25.  
  26. source 'https://rubygems.org'
  27. ruby '2.3.3'
  28.  
  29. gem 'sinatra'
  30. # sinatra needs old tilt version: http://stackoverflow.com/questions/20648394/moduletemplates-uninitialized-constant-tiltcompilesite-nameerror-using
  31. #https://groups.google.com/forum/#!topic/sinatrarb/mAtn7AZBVmY
  32. gem 'tilt', '~> 1.4.1', group: :production
  33. gem 'rest-client'
  34. gem 'sequel'
  35. gem 'sqlite3', group: :development
  36. gem 'pg', '~> 0.18', group: :development
  37. gem 'cowsay'
  38. # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
  39. gem 'rails', '4.2.5'
  40. # Use postgresql as the database for Active Record
  41. gem 'pg', '~> 0.18', group: :production
  42. gem 'rails_12factor', group: :production
  43. # Use SCSS for stylesheets
  44. gem 'sass-rails', '~> 5.0.3'
  45. # Use Uglifier as compressor for JavaScript assets
  46. gem 'uglifier', '>= 1.3.0'
  47. # Use CoffeeScript for .js.coffee assets and views
  48. gem 'coffee-rails', '~> 4.0.0'
  49. # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  50. # gem 'therubyracer', platforms: :ruby
  51.  
  52. # Use jquery as the JavaScript library
  53. gem 'jquery-rails'
  54. # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
  55. gem 'turbolinks'
  56. # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
  57. gem 'jbuilder', '~> 2.0'
  58. # bundle exec rake doc:rails generates the API under doc/api.
  59. gem 'sdoc', '~> 0.4.0', group: :doc
  60.  
  61. # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  62. gem 'spring', group: :development
  63.  
  64. # Use ActiveModel has_secure_password
  65. # gem 'bcrypt', '~> 3.1.7'
  66.  
  67. gem 'puma'
  68.  
  69. # Use Capistrano for deployment
  70. # gem 'capistrano-rails', group: :development
  71.  
  72. 2016-12-29T23:17:02.130612+00:00 app[web.1]: [4] * Environment: production
  73. 2016-12-29T23:17:02.130612+00:00 app[web.1]: [4] * Process workers: 2
  74. 2016-12-29T23:17:02.130613+00:00 app[web.1]: [4] * Preloading application
  75. 2016-12-29T23:17:03.585155+00:00 app[web.1]: [4] ! Unable to load application: PG::ConnectionBad: could not connect to server: No such file or directory
  76. 2016-12-29T23:17:03.585170+00:00 app[web.1]: Is the server running locally and accepting
  77. 2016-12-29T23:17:03.585172+00:00 app[web.1]: connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  78. 2016-12-29T23:17:03.585225+00:00 app[web.1]: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.3.0/bin/puma)
  79. 2016-12-29T23:17:03.585247+00:00 app[web.1]: PG::ConnectionBad: could not connect to server: No such file or directory
  80. 2016-12-29T23:17:03.585248+00:00 app[web.1]: Is the server running locally and accepting
  81. 2016-12-29T23:17:03.585249+00:00 app[web.1]: connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  82. 2016-12-29T23:17:03.585250+00:00 app[web.1]:
  83. 2016-12-29T23:17:03.585250+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg.rb:45:in `initialize'
  84. 2016-12-29T23:17:03.585251+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg.rb:45:in `new'
  85. 2016-12-29T23:17:03.585252+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg.rb:45:in `connect'
  86. 2016-12-29T23:17:03.585253+00:00 app[web.1]: /app/firebasepushserver.rb:31:in `<top (required)>'
  87. 2016-12-29T23:17:03.585254+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
  88. 2016-12-29T23:17:03.585256+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'
  89. 2016-12-29T23:17:03.585256+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
  90. 2016-12-29T23:17:03.585257+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
  91. 2016-12-29T23:17:03.585258+00:00 app[web.1]: config.ru:5:in `block in <main>'
  92. 2016-12-29T23:17:03.585258+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
  93. 2016-12-29T23:17:03.585259+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
  94. 2016-12-29T23:17:03.585260+00:00 app[web.1]: config.ru:in `new'
  95. 2016-12-29T23:17:03.585261+00:00 app[web.1]: config.ru:in `<main>'
  96. 2016-12-29T23:17:03.585261+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
  97. 2016-12-29T23:17:03.585262+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
  98. 2016-12-29T23:17:03.585263+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
  99. 2016-12-29T23:17:03.585263+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.6.0/lib/puma/configuration.rb:315:in `load_rackup'
  100. 2016-12-29T23:17:03.585264+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.6.0/lib/puma/configuration.rb:243:in `app'
  101. 2016-12-29T23:17:03.585265+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.6.0/lib/puma/runner.rb:127:in `load_and_bind'
  102. 2016-12-29T23:17:03.585266+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.6.0/lib/puma/cluster.rb:370:in `run'
  103. 2016-12-29T23:17:03.585266+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.6.0/lib/puma/launcher.rb:172:in `run'
  104. 2016-12-29T23:17:03.585267+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.6.0/lib/puma/cli.rb:74:in `run'
  105. 2016-12-29T23:17:03.585267+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.6.0/bin/puma:10:in `<top (required)>'
  106. 2016-12-29T23:17:03.585268+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/bin/puma:22:in `load'
  107. 2016-12-29T23:17:03.585269+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/bin/puma:22:in `<top (required)>'
  108. 2016-12-29T23:17:03.656423+00:00 heroku[web.1]: Process exited with status 1
  109. 2016-12-29T23:17:03.673289+00:00 heroku[web.1]: State changed from starting to crashed
  110. 2016-12-29T23:41:22.415335+00:00 app[api]: Starting process with command `bundle exec rake db:migrate` by user mjpablo23@gmail.com
  111. 2016-12-29T23:41:25.630947+00:00 heroku[run.7170]: Awaiting client
  112. 2016-12-29T23:41:25.666952+00:00 heroku[run.7170]: Starting process with command `bundle exec rake db:migrate`
  113. 2016-12-29T23:41:25.724663+00:00 heroku[run.7170]: State changed from starting to up
  114. 2016-12-29T23:41:32.206652+00:00 heroku[run.7170]: State changed from up to complete
  115. 2016-12-29T23:41:32.192296+00:00 heroku[run.7170]: Process exited with status 0
  116. 2016-12-29T23:41:51.140936+00:00 heroku[web.1]: State changed from crashed to starting
  117. 2016-12-29T23:41:55.556173+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
  118. 2016-12-29T23:41:59.809729+00:00 app[web.1]: [4] Puma starting in cluster mode...
  119. 2016-12-29T23:41:59.809919+00:00 app[web.1]: [4] * Version 3.6.0 (ruby 2.3.3-p222), codename: Sleepy Sunday Serenity
  120. 2016-12-29T23:41:59.809994+00:00 app[web.1]: [4] * Min threads: 5, max threads: 5
  121. 2016-12-29T23:41:59.810069+00:00 app[web.1]: [4] * Environment: production
  122. 2016-12-29T23:41:59.810184+00:00 app[web.1]: [4] * Process workers: 2
  123. 2016-12-29T23:41:59.810294+00:00 app[web.1]: [4] * Preloading application
  124. 2016-12-29T23:42:04.051013+00:00 app[web.1]: [4] ! Unable to load application: PG::ConnectionBad: could not connect to server: No such file or directory
  125. 2016-12-29T23:42:04.051023+00:00 app[web.1]: Is the server running locally and accepting
  126. 2016-12-29T23:42:04.051024+00:00 app[web.1]: connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  127. 2016-12-29T23:42:04.051145+00:00 app[web.1]: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.3.0/bin/puma)
  128. 2016-12-29T23:42:04.051215+00:00 app[web.1]: Is the server running locally and accepting
  129. 2016-12-29T23:42:04.051214+00:00 app[web.1]: PG::ConnectionBad: could not connect to server: No such file or directory
  130. 2016-12-29T23:42:04.051217+00:00 app[web.1]:
  131. 2016-12-29T23:42:04.051217+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg.rb:45:in `initialize'
  132. 2016-12-29T23:42:04.051218+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg.rb:45:in `new'
  133. 2016-12-29T23:42:04.051216+00:00 app[web.1]: connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  134. 2016-12-29T23:42:04.051219+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg.rb:45:in `connect'
  135. 2016-12-29T23:42:04.051220+00:00 app[web.1]: /app/firebasepushserver.rb:31:in `<top (required)>'
  136. 2016-12-29T23:42:04.051223+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'
  137. 2016-12-29T23:42:04.051221+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
  138. 2016-12-29T23:42:04.051224+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
  139. 2016-12-29T23:42:04.051224+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
  140. 2016-12-29T23:42:04.051225+00:00 app[web.1]: config.ru:5:in `block in <main>'
  141. 2016-12-29T23:42:04.051227+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
  142. 2016-12-29T23:42:04.051227+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
  143. 2016-12-29T23:42:04.051228+00:00 app[web.1]: config.ru:in `new'
  144. 2016-12-29T23:42:04.051229+00:00 app[web.1]: config.ru:in `<main>'
  145. 2016-12-29T23:42:04.051230+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
  146. 2016-12-29T23:42:04.051230+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
  147. 2016-12-29T23:42:04.051231+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
  148. 2016-12-29T23:42:04.051231+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.6.0/lib/puma/configuration.rb:315:in `load_rackup'
  149. 2016-12-29T23:42:04.051232+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.6.0/lib/puma/configuration.rb:243:in `app'
  150. 2016-12-29T23:42:04.051233+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.6.0/lib/puma/runner.rb:127:in `load_and_bind'
  151. 2016-12-29T23:42:04.051233+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.6.0/lib/puma/cluster.rb:370:in `run'
  152. 2016-12-29T23:42:04.051234+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.6.0/lib/puma/launcher.rb:172:in `run'
  153. 2016-12-29T23:42:04.051235+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.6.0/lib/puma/cli.rb:74:in `run'
  154. 2016-12-29T23:42:04.051235+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/puma-3.6.0/bin/puma:10:in `<top (required)>'
  155. 2016-12-29T23:42:04.051236+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/bin/puma:22:in `load'
  156. 2016-12-29T23:42:04.051237+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/bin/puma:22:in `<top (required)>'
  157. 2016-12-29T23:42:04.201815+00:00 heroku[web.1]: Process exited with status 1
  158. 2016-12-29T23:42:04.201565+00:00 heroku[web.1]: State changed from starting to crashed
  159. 2016-12-29T23:50:51.225592+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=POST path="/register" host=favorsrubytest2.herokuapp.com request_id=a4839906-3bcf-41f3-959b-f24823d50a8a fwd="96.90.253.166" dyno= connect= service= status=503 bytes=
  160. 2016-12-29T23:51:28.906822+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=POST path="/register" host=favorsrubytest2.herokuapp.com request_id=1fe24de4-94ed-4c27-8f6d-a650da5aee53 fwd="96.90.253.166" dyno= connect= service= status=503 bytes=
  161. 2016-12-29T23:57:59.851571+00:00 app[api]: Starting process with command `bundle exec rake db:schema:load` by user mjpablo23@gmail.com
  162. 2016-12-29T23:58:02.749520+00:00 heroku[run.7794]: Awaiting client
  163. 2016-12-29T23:58:02.793000+00:00 heroku[run.7794]: Starting process with command `bundle exec rake db:schema:load`
  164. 2016-12-29T23:58:03.049242+00:00 heroku[run.7794]: State changed from starting to up
  165. 2016-12-29T23:58:08.694759+00:00 heroku[run.7794]: State changed from up to complete
  166. 2016-12-29T23:58:08.679880+00:00 heroku[run.7794]: Process exited with status 0
  167. 2016-12-29T23:58:23.071987+00:00 app[api]: Starting process with command `bundle exec rake db:migrate` by user mjpablo23@gmail.com
  168. 2016-12-29T23:58:27.092648+00:00 heroku[run.2844]: Awaiting client
  169. 2016-12-29T23:58:27.158662+00:00 heroku[run.2844]: Starting process with command `bundle exec rake db:migrate`
  170. 2016-12-29T23:58:27.228211+00:00 heroku[run.2844]: State changed from starting to up
  171. 2016-12-29T23:58:34.824401+00:00 heroku[run.2844]: Process exited with status 0
  172. 2016-12-29T23:58:34.841240+00:00 heroku[run.2844]: State changed from up to complete
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement