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
Hi, I am trying to do my first deploy with mina, and it fails to run the migrations.
This is normal: my migrations do not run from the start, because somewhere during development I added the schema_plus gem, which makes my migrations more stringent.
Normally this is not a problem: I would just do rake db:setup and I would be fine and dandy. However: after a failed install, everything is deleted, so I cannot do a manual rake db:setup.
Does anybody have some tips how to get out of this?
So, either
a way to run rake db:setup on first deploy
or a way that the files are not deleted after a failed install, so I can still manually run rake db:setup
The text was updated successfully, but these errors were encountered:
I had a similar issue some time ago (where i wanted to run a rake task but
installation was failing so i wasn't able to). I have manually cloned my
repo on a server, configured my db, fired rake db:setup and removed
cloned repo. Then, i have made a regular deploy with mina on previously
used database.
Ok. Thanks for the tip. I did something alike. I added
to :clean do
queue %[echo "do my personal cleaning"]
queue %[cp -R "$build_path" "#{deploy_to}/keep_failed"]
end
so right before cleaning, it would copy the build folder to the keep_failed folder, and then I could use that to run rake db:setup. Still dirty, but a little less work 💤 😄
Hi, I am trying to do my first deploy with mina, and it fails to run the migrations.
This is normal: my migrations do not run from the start, because somewhere during development I added the
schema_plus
gem, which makes my migrations more stringent.Normally this is not a problem: I would just do rake db:setup and I would be fine and dandy. However: after a failed install, everything is deleted, so I cannot do a manual
rake db:setup
.Does anybody have some tips how to get out of this?
So, either
rake db:setup
on first deployrake db:setup
The text was updated successfully, but these errors were encountered: