I have a Rails app on Heroku, with postgresql, that works fine on a Heroku domain:
my-app.herokuapp.com
But not on a specific domain:
my-app.com
It works until I try to submit a form and an error pops up:
"The change you wanted was rejected. Maybe you tried to change something you didn't have access to."
I thought the problem could be about postgresql, and I tryed this:
rails db:create
But I receive another error:
"Couldn't create 'myapp_development' database. Please check your configuration."
Edit 1 with more details: I'm using Cloudflare. My database.yml file is like this: /config/database.yml.tmp
CodePudding user response:
I solved it doing this:
- In
production.rb
settingconfig.force_ssl = false
- In Cloudflare
setting SSL/TLS encryption mode from
Flexible
toFull