diff --git a/CHANGELOG.md b/CHANGELOG.md index 90c5a30..c38605d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.0.0-RC5 - 2019-02-01 +- Fixed: use the correct environment name for config files +- The non-existing `/storage` folder is created on the remote + ## 1.0.0-RC4 - 2019-02-01 - `copy/setup` is more resilient - `copy/db/up --force` does not require the plugin to be enabled on the remote diff --git a/README.md b/README.md index ed5daf7..445bb68 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Craft Copy Plugin (RC4) +# Craft Copy Plugin (RC5) This little command line tool helps to speed up common tasks around Craft CMS deployment on [fortrabbit](https://www.fortrabbit.com/): @@ -29,7 +29,7 @@ cd your/craft-project composer config platform --unset -composer require fortrabbit/craft-copy:^1.0.0-RC4 +composer require fortrabbit/craft-copy:^1.0.0-RC5 php craft install/plugin copy php craft copy/setup @@ -186,17 +186,17 @@ echo 'export PATH=/Applications/MAMP/bin/php/php7.2.1/bin:$PATH' >>~/.bash_profi When installing the plugin via composer you may see an error like this: ``` -$ composer require fortrabbit/craft-copy:^1.0.0-RC4 +$ composer require fortrabbit/craft-copy:^1.0.0-RC5 ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - - Installation request for fortrabbit/craft-copy ^1.0.0-RC4 -> satisfiable by fortrabbit/craft-copy[1.0.0-RC4]. + - Installation request for fortrabbit/craft-copy ^1.0.0-RC5 -> satisfiable by fortrabbit/craft-copy[1.0.0-RC5]. - Conclusion: remove symfony/console v3.3.6 - Conclusion: don't install symfony/console v3.3.6 - - fortrabbit/craft-copy 1.0.0-RC4 requires symfony/yaml ^4.1 + - fortrabbit/craft-copy 1.0.0-RC5 requires symfony/yaml ^4.1 [...] Problem 99 ``` diff --git a/composer.json b/composer.json index 2ded89b..0c6631b 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "fortrabbit/craft-copy", "description": "Tooling for Craft on fortrabbit", "type": "craft-plugin", - "version": "1.0.0-RC4", + "version": "1.0.0-RC5", "keywords": [ "craft", "cms", diff --git a/src/commands/DbUpAction.php b/src/commands/DbUpAction.php index 799c3c3..ba53a5c 100644 --- a/src/commands/DbUpAction.php +++ b/src/commands/DbUpAction.php @@ -78,6 +78,10 @@ public function run(string $config = null) // Import on remote (does not require craft or copy on remote) $bar->setMessage($messages[] = "Importing dump on remote (raw)"); + + // Try to create storage path first + $plugin->ssh->exec("mkdir -p $path"); + if ($plugin->ssh->exec("php vendor/bin/craft-copy-import-db.php {$transferFile} --force")) { $bar->advance(); $bar->setMessage("Dump imported"); diff --git a/src/commands/SetupAction.php b/src/commands/SetupAction.php index 69a53d2..4196b41 100644 --- a/src/commands/SetupAction.php +++ b/src/commands/SetupAction.php @@ -139,6 +139,7 @@ protected function writeDeployConfig(string $app, string $region, string $config $config->sshUrl = "{$app}@deploy.{$region}.frbit.com"; $config->gitRemote = "$app/master"; $config->setName($configName); + Plugin::getInstance()->config->setName($configName); // Check if file already exist if (file_exists(Plugin::getInstance()->config->getFullPathToConfig())) {