This is because you haven’t set your secret key correctly. Double check your config/secrets.yml file: It should be something like this:
production: secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
Then in your droplet, you can run bundle exec rake secret
to get your secret key. There are options like dotenv
which is a useful gem that loads the contents of a .env file into ENV
Related Posts:
- 400 Bad Request – request header or cookie too large
- Why Puma listen on ‘tcp://localhost:3000’ instead of ‘http://localhost:3000’
- Rails 5 ActionController::InvalidAuthenticityToken error
- what does ? ? mean in ruby
- Parsing XML with Ruby
- NGINX: upstream timed out (110: Connection timed out) while reading response header from upstream
- Rails 4 RoutingError: No Route Matches
- PG::ConnectionBad – could not connect to server: Connection refused
- Rails syntax error : unexpected keyword_ensure, expecting end-of-input
- Ruby: What is the easiest way to remove the first element from an array?
- Ruby String to Date Conversion
- Purge or recreate a Ruby on Rails database
- Uploading a file in Rails
- Nginx error: client intended to send too large body
- How to force or redirect to SSL in nginx?
- Get underlined text with Markdown
- How can I use environment variables in Nginx.conf
- “413 Request Entity Too Large” in Nginx with “client_max_body_size” set
- Advanced AREL or just Rails Query for has_many through search by association
- What is the meaning of *nix?
- Get underlined text with Markdown
- What does ERR_SPDY_PROTOCOL_ERROR mean in nginx?
- Explain what " means
- Why does Ruby on Rails use http://0.0.0.0:3000 instead of http://localhost:3000?
- What does the “map” method do in Ruby?
- Possible reason for NGINX 499 error codes
- ActionController::InvalidAuthenticityToken
- Terminal error: zsh: permission denied: ./startup.sh
- How to write a switch statement in Ruby
- bundle install returns “Could not locate Gemfile”
- How can I use an .htaccess file in Nginx?
- ActionController::InvalidAuthenticityToken
- AngularJS- Login and Authentication in each route and controller
- Rails: Why “sudo” command is not recognized?
- Nginx: Failed to start A high performance web server and a reverse proxy server
- HAProxy vs. Nginx
- Rails: Can’t verify CSRF token authenticity when making a POST request
- Getting error: Peer authentication failed for user “postgres”, when trying to get pgsql working with rails
- How to update Ruby Version 2.0.0 to the latest version in Mac OSX Yosemite?
- undefined method `each’ for nil:NilClass… why?
- What does %w(array) mean?
- Bundler: You must use Bundler 2 or greater with this lockfile
- Nginx 403 forbidden for all files
- How to use “gets” and “gets.chomp” in Ruby
- Getting a substring in Ruby by x number of chars
- undefined method `each’ for nil:NilClass… why?
- Using Pundit for all-access “super_admin” role
- How to check whether a string contains a substring in Ruby
- How to tell if homebrew is installed on Mac OS X
- Ruby: How to install a specific version of a ruby gem?
- What is the difference between Rails.cache.clear and rake tmp:cache:clear?
- ruby operator “=~” [duplicate]
- Unable to install gem – Failed to build gem native extension – cannot load such file — mkmf (LoadError)
- What is attr_accessor in Ruby?
- ActionController::UnknownFormat
- What does ||= (or-equals) mean in Ruby?
- Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
- How to solve “sign_and_send_pubkey: signing failed: agent refused operation”?
- How to read lines of a file in Ruby
- Array to Hash Ruby
- Cannot load such file — bcrypt_ext
- How do I remove Permission denied @ rb_sysopen – Gem install error?
- Ruby: undefined method `[]’ for nil:NilClass when trying to get Enumerator on an Array of Hashes
- How to map with index in Ruby?
- Node.js + Nginx – What now?
- Nginx upstream prematurely closed connection while reading response header from upstream, for large requests
- Email validation in Ruby on Rails?
- Can’t find the ‘libpq-fe.h header when trying to install pg gem
- warning: constant ::Fixnum is deprecated When generating new model
- could not connect to server: No such file or directory (PG::ConnectionBad)
- Ruby equivalent for Python’s “try”?
- PG::ConnectionBad: fe_sendauth: no password supplied
- What does “+=” (plus equals) mean?
- nginx: connect() failed (111: Connection refused) while connecting to upstream – after update nginx –
- curl : (1) Protocol https not supported or disabled in libcurl
- How to fix nginx throws 400 bad request headers on any header testing tools?
- extconf failed, exit code 1 error when installing [Ruby on Rails] 5 on OS X Yosemite 10.10.5
- couldn’t find file ‘jquery’ with type ‘application/javascript’
- How to sum array of numbers in Ruby?
- Passing parameters in rails redirect_to
- nginx – nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
- Ruby array to string conversion
- How to check if a value exists in an array in Ruby
- undefined method (NoMethodError) ruby
- Multi-Line Comments in Ruby?
- Getting: “Migrations are pending; run ‘bin/rake db:migrate RAILS_ENV=development’ to resolve this issue.” after cloning and migrating the project
- How to uninstall ruby installed by ruby-install
- How to find out which rails version an existing rails application is built on?
- RubyMine Unit tests – Test Framework quit unexpectedly
- Removing all installed Gems and starting over
- Ruby `send` vs `call` method
- How to use NGINX as forward proxy for any requested location?
- What is the meaning of “do | |” in Ruby?
- RVM is not a function, selecting rubies with ‘rvm use …’ will not work
- How to verify if nginx is running or not?
- How to delete specific characters from a string in Ruby?
- bcrypt LoadError: Cannot load such file
- Uninitialized constant “Controller Name”
- Ruby: kind_of? vs. instance_of? vs. is_a?
- Rails: I installed Ruby, now “bundle install” doesn’t work