Closed (fixed)
Project:
Provision
Version:
6.x-0.4-alpha2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2009 at 22:35 UTC
Updated:
12 Jun 2014 at 08:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
anarcat commentedplatform/migrate.provision.inc does say:
However nothing in the code actually does that from what i can tell.
Comment #2
anarcat commentedI tried this:
For some reason this fails with:
Comment #3
Anonymous (not verified) commentedThis works better, take advantage of some of drush2.1's new features
This puts the site into offline mode prior to migrate.
However! I put the site back online in the post_ hook but it doesn't work - drush will fail with
This is because technically the site is 'deleted' here: the site dir doesn't exist, we've just deleted it. We need to assume the site is in offline state stll after invoking 'provision deploy', and set it back online in the deploy post hook.
(I think)
Comment #4
Anonymous (not verified) commentedPlease test
Comment #5
Anonymous (not verified) commentedPlease test
Comment #6
Anonymous (not verified) commentedUpdated patch, doesn't use vset, just writes
$conf['site_offline'] = 1;to the settings.php for that fleeting moment before the site dir gets blown away prior to invoking provision deploy.Since we use drush_set_option here, we can then accurately unset that variable on rollback and regenerate the settings.php without this setting, taking the site back out of offline mode should Migrate fail.
Comment #7
adrian commentedcomitted a simpler version.
Comment #8
Anonymous (not verified) commented