Advertisement
Guest User

Untitled

a guest
Aug 15th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. App 1600 stderr: [ 2017-08-15 18:06:11.5094 1695/0x80c38a54(Worker 1) utils.rb:87 ]: *** Exception RuntimeError in Rack application object (Missing `secret_key_base` for 'production' environment, set this value in `config/secrets.yml`) (process 1695, thread 0x80c38a54(Worker 1)):
  2. App 1600 stderr: from /home/user/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.1/lib/rails/application.rb:510:in `validate_secret_key_config!'
  3. App 1600 stderr: from /home/user/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.1/lib/rails/application.rb:247:in `env_config'
  4. App 1600 stderr: from /home/user/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.1/lib/rails/engine.rb:692:in `build_request'
  5. App 1600 stderr: from /home/user/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.1/lib/rails/application.rb:518:in `build_request'
  6. App 1600 stderr: from /home/user/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.1/lib/rails/engine.rb:521:in `call'
  7. App 1600 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
  8. App 1600 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:152:in `accept_and_process_next_request'
  9. App 1600 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
  10. App 1600 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
  11. App 1600 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
  12.  
  13. production:
  14. secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
  15.  
  16. production:
  17. secret_key_base: thing you copied from rake secrets
  18.  
  19. #/etc/nginx/sites-available/site
  20.  
  21. server {
  22. server_name subdomain.website.com;
  23. root /home/user/rails_dir/public;
  24. passenger_enabled on;
  25. passenger_ruby /home/user/.rbenv/shims/ruby;
  26. passenger_sticky_sessions on;
  27.  
  28. }
  29.  
  30. SECRET_KEY_BASE=thing I copied from rake secret
  31. APP_DATABASE_USER=website_name
  32. APP_DATABASE_PASSWORD=website_name's password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement