Commit 1595acf6 authored by drumm's avatar drumm Committed by Neil Drumm

Remote site install kinda works.

parent 6bb20f91
<?php
function drush_db_provision_install_validate() {
provision_service('db')->connect();
d()->db_server->service('db')->connect();
}
function drush_db_pre_provision_install() {
provision_service('db')->create_site_database();
d()->db_server->service('db')->create_site_database();
}
function drush_db_pre_provision_install_rollback() {
if (!_provision_drupal_site_installed()) {
provision_service('db')->destroy_site_database();
d()->db_server->service('db')->destroy_site_database();
}
}
......@@ -74,9 +74,6 @@ class provisionService_http_apache extends provisionService_http {
function parse_configs($cause_error = FALSE) {
d()->service('file')->sync();
if (d()->type === 'platform' || d()->type === 'site') {
d()->service('file')->sync(d()->root);
}
// This is required to be configurable, due to the fact that different
// hosts might need to do this differently.
if (drush_is_local_host($this->remote_host)) {
......
......@@ -183,6 +183,7 @@ function _provision_drupal_site_installed() {
function _provision_drupal_create_settings_file() {
$config = new provisionConfig_drupal_settings(d()->name);
$config->write();
d()->service('file')->sync(d()->root);
}
class provisionConfig_drupal_settings extends provisionConfig {
......
......@@ -43,6 +43,7 @@ function provision_save_site_data() {
if (!drush_get_error()) {
$config = new provisionConfig_drushrc_site(d()->name);
$config->write();
d()->service('file')->sync(d()->root);
}
}
......@@ -54,6 +55,7 @@ function provision_save_platform_data() {
if (!drush_get_error()) {
$config = new provisionConfig_drushrc_platform(d()->name);
$config->write();
d()->service('file')->sync(d()->root);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment