Skip to content

Instantly share code, notes, and snippets.

@Ducain
Last active June 13, 2017 09:56
Show Gist options
  • Save Ducain/edaaf4644d71601f4334 to your computer and use it in GitHub Desktop.
Save Ducain/edaaf4644d71601f4334 to your computer and use it in GitHub Desktop.
Capistrano 3 running Phinx migrations on Windows server
after "deploy:updating", "deploy:phinx_migrations"
namespace :deploy do
task :restart do ; end
desc 'Run Phinx migrations'
task :phinx_migrations do
on roles(:app) do
within release_path do
execute 'php', 'vendor/robmorgan/phinx/bin/phinx', 'migrate', '-e', 'production', raise_on_non_zero_exit: false
end
end
end
end
@MasonM
Copy link

MasonM commented Jan 2, 2015

This is exactly what I was looking for. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment