Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)):
- 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!'
- 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'
- 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'
- 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'
- 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'
- App 1600 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
- App 1600 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:152:in `accept_and_process_next_request'
- App 1600 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
- App 1600 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
- App 1600 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
- production:
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
- production:
- secret_key_base: thing you copied from rake secrets
- #/etc/nginx/sites-available/site
- server {
- server_name subdomain.website.com;
- root /home/user/rails_dir/public;
- passenger_enabled on;
- passenger_ruby /home/user/.rbenv/shims/ruby;
- passenger_sticky_sessions on;
- }
- SECRET_KEY_BASE=thing I copied from rake secret
- APP_DATABASE_USER=website_name
- APP_DATABASE_PASSWORD=website_name's password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement