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'd like to execute some commands depending on whether a deployment is the first one or not.
In the following pseudo code, I'm using a hypothetical first_deploy? method:
task:deploydo# uncomment this line to make sure you pushed your local branch to the remote origininvoke:'git:ensure_pushed'deploydoinvoke:'git:clone'invoke:'deploy:link_shared_paths'invoke:'bundle:install'invoke:'rails:db_schema_load'iffirst_deploy?invoke:'rails:db_migrate'command%{#{fetch(:rails)} db:seed}iffirst_deploy?invoke:'rails:assets_precompile'invoke:'deploy:cleanup'on:launchdoiffirst_deploy?invoke:'puma:start'elseinvoke:'puma:phased_restart'endendendend
How can I achieve this?
The text was updated successfully, but these errors were encountered:
(Related to #651)
I'd like to execute some commands depending on whether a deployment is the first one or not.
In the following pseudo code, I'm using a hypothetical
first_deploy?
method:How can I achieve this?
The text was updated successfully, but these errors were encountered: