mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-29 10:38:57 +02:00
Changes on configuration.
Preparation for Post Release tasks.
This commit is contained in:
+10
-8
@@ -13,15 +13,17 @@ class Mage_Task_Add
|
||||
Mage_Console::output('<light_red>Error!!</light_red> Already exists an environment called <dark_gray>' . $environmentName . '</dark_gray>', 1, 2);
|
||||
} else {
|
||||
$baseConfig = '#' . $environmentName . PHP_EOL
|
||||
. 'user: dummy' . PHP_EOL
|
||||
. 'deploy-from: ./' . PHP_EOL
|
||||
. 'deploy-to: /var/www/vhosts/example.com/www' . PHP_EOL
|
||||
. 'rsync-excludes:' . PHP_EOL
|
||||
. 'deployment:'
|
||||
. ' user: dummy' . PHP_EOL
|
||||
. ' from: ./' . PHP_EOL
|
||||
. ' to: /var/www/vhosts/example.com/www' . PHP_EOL
|
||||
. ' excludes:' . PHP_EOL
|
||||
. 'hosts:' . PHP_EOL
|
||||
. 'pre-tasks:' . PHP_EOL
|
||||
. 'tasks:' . PHP_EOL
|
||||
. ' - deployment/rsync' . PHP_EOL
|
||||
. 'post-tasks:' . PHP_EOL;
|
||||
. 'tasks:'
|
||||
. ' pre-deploy:' . PHP_EOL
|
||||
. ' on-deploy:' . PHP_EOL
|
||||
. ' - deployment/rsync' . PHP_EOL
|
||||
. ' post-deploy:' . PHP_EOL;
|
||||
$result = file_put_contents($environmentConfigFile, $baseConfig);
|
||||
|
||||
if ($result) {
|
||||
|
||||
Reference in New Issue
Block a user