Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeremy Hunt Ducain

View GitHub Profile
@Ducain
Ducain / capfile_for_phinx.rb
Last active Jun 13, 2017
Capistrano 3 running Phinx migrations on Windows server
View capfile_for_phinx.rb
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
You can’t perform that action at this time.