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?
- How can I use environment variables in Nginx.conf
- 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?
- Possible reason for NGINX 499 error codes
- undefined method `each’ for nil:NilClass… why?
- Bundler: You must use Bundler 2 or greater with this lockfile
- Nginx 403 forbidden for all files
- undefined method `each’ for nil:NilClass… why?
- ruby operator “=~” [duplicate]
- What does ||= (or-equals) mean in Ruby?
- warning: constant ::Fixnum is deprecated When generating new model
- nginx – nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
- Ruby array to string conversion
- Multi-Line Comments in Ruby?
- bcrypt LoadError: Cannot load such file
- Devise lockable – How to unlock account using unlock_in
- heroku open – no app specified
- Determining type of an object in ruby
- Difference between rake db:migrate db:reset and db:schema:load
- How to Uninstall RVM? [duplicate]
- Nginx: stat() failed (13: permission denied)
- Forwarding port 80 to 8080 using NGINX
- How to stop (and restart) the Rails Server?
- Getting error: dyld: Symbol not found: _clock_gettime
- Generate model in Rails using user_id:integer vs user:references
- How to add to an existing hash in Ruby
- What is the canonical way to trim a string in Ruby without creating a new string?
- nginx progy pass doesn’t work in WordPress admin
- Setting 404 page in Nginx
- How do I add a server-independent external rewrite rule?
- nginx or cherokee ( +php-fpm ) for WordPress backend?
- WordPress Multisite with multiple domains using Nginx
- How to configure nginx to redirect requests to the uploads directory to the production server?
- NGinx + WordPress Subdomain Multi with core in Subdirectory
- How to remove the index.php in the url?
- Why “Settings->Permalinks” creates .htaccess file on nginx server?
- WordPress redirect loop on nginx + apache reverse proxy
- WordPress media upload “HTTP error”
- Configuring Routing Rules for WordPress+Nginx and WP-SuperCache?
- Subdirectory multisite – only root admin available on NGINX
- REST API parameters not working with nginx
- How to test drive WordPress on VPS with LEMP stack before going live?
- Server Move: All pages leading home
- How do I fix permalink and media library issues on a LEMP stack?
- HTTP_HOST changing in functions.php
- wp-login behind nginx reverse-proxy inaccessible — bad redirect?
- Showing another posts on Archive custom post type page
- WordPress 502 | Header Upstream send too big
- WordPress & Fastcgi proper setup?
- Receiving 404 when uploading file larger than 10kb
- Redirect the whole blog to SSL but not the RSS feed (under Nginx)
- Recommendation for server config for WordPress Staging servers [closed]
- Why is Google Search Console getting X-Robots-Tag noindex?
- Moving wordpress to different url/server creates redirect loop
- Nginx WordPress and another Web app URL structure
- Ubuntu 12.04, Nginx and MySQL issue with WordPress Database
- Scheduling doesn’t work due to caching?
- Last-Modified header is removed from server response!
- issue with wordpress [wp-admin] redirects, when using kubernetes ingress hosting two wordpress websites using path
- How to route root path / to /xyz in nginx?
- 504 Gateway Time-out nginx/1.14.0 (Ubuntu)
- Possible to reverse proxy WP multisite to a separate server with NGINX?
- Elementor contact form doesn’t work: “Oops! I cannot send this email!”
- How to install WordPress on sub directory in ubuntu 16.4 in same vhost with AngularJS
- Multisite wp-admin redirecting to main wp-admin using NGINX
- Restrict access if logged out except for homepage
- 403 Forbidden home on localhost with nginx server
- wordpress admin panel loop on nginx
- I have cloudflare flexible enabled, How to redirect to https for Nginx server
- Can I do fragment caching with NGINX fastcgi?
- Proxy caching WordPress with Nginx
- How to update plugins in a distributed wordpress scenario?
- Varnish + Nginx for WordPress is Good?
- Nginx how to redirect index.php
- In Nginx, how can I rewrite all http requests to https while maintaining sub-domain?
- How can I see which flags Nginx was compiled with?
- How to reply with 200 from Nginx, without serving a file?
- How do you restart php-fpm?
- Nginx enable site command
- How to remove the path with an nginx proxy_pass
- Can I hide all server / os info?
- How to disable timeout for nginx?
- Remove “www” and redirect to “https” with nginx