You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating the app with the "Deploy to Heroku" button, the default configuration of the app.json file leads to a Postdeploy error:
ActiveRecord::ProtectedEnvironmentError: You are attempting to run a destructive action against your 'production' database.
If you are sure you want to continue, run the same command with the environment variable:
DISABLE_DATABASE_ENVIRONMENT_CHECK=1
The error comes from this postdeploy script (defined in the app.json file):
We could remove that postdeploy script and update the README file suggesting to run that script manually. This way the user understands what's happening and can decide to use the DISABLE_DATABASE_ENVIRONMENT_CHECK=1 env var.
The text was updated successfully, but these errors were encountered:
WHAT
When creating the app with the "Deploy to Heroku" button, the default configuration of the
app.json
file leads to a Postdeploy error:The error comes from this postdeploy script (defined in the
app.json
file):SOLUTIONS
We could remove that postdeploy script and update the README file suggesting to run that script manually. This way the user understands what's happening and can decide to use the DISABLE_DATABASE_ENVIRONMENT_CHECK=1 env var.
The text was updated successfully, but these errors were encountered: