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
I'm still unsure when to load my DB schema when setting up a new application using Mina.
I know about invoke :'rails:db_schema_load' in deploy, but I only need to run it the very first deploy. So why not move it to setup? Or at least only run it the very first time - because now I have to uncomment it manually after the first run, otherwise:
rake aborted!
ActiveRecord::ProtectedEnvironmentError: You are attempting to run a destructive action against your 'production' database.
Thank you.
The text was updated successfully, but these errors were encountered:
Is this an exotic question? Or why does nobody seem to care? I find my question a very basic one, and I don't find any explanation or further information about it anywhere else. Blog posts explaining how to set up a deployment using Mina seem to help themselves by manually loading the DB, or by uncommenting invoke :'rails:db_schema_load' the very first time a deployment is executed, but this all seems silly to me. There must be a fool-proof way for that?!
Hello
I'm still unsure when to load my DB schema when setting up a new application using Mina.
I know about
invoke :'rails:db_schema_load'
indeploy
, but I only need to run it the very first deploy. So why not move it tosetup
? Or at least only run it the very first time - because now I have to uncomment it manually after the first run, otherwise:Thank you.
The text was updated successfully, but these errors were encountered: