From cf9144ec97bb7bc7c947bc97e2ec4e3a56014ce2 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Thu, 21 Sep 2017 14:48:01 -0700 Subject: [PATCH] update flex to use post-install-cmd --- appengine/flexible/laravel/test/DeployDatabaseSessionTest.php | 2 +- appengine/flexible/laravel/test/DeployTest.php | 2 +- appengine/flexible/symfony/README.md | 2 +- appengine/flexible/symfony/test/DeployTest.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/appengine/flexible/laravel/test/DeployDatabaseSessionTest.php b/appengine/flexible/laravel/test/DeployDatabaseSessionTest.php index 515488617f..d94279162f 100644 --- a/appengine/flexible/laravel/test/DeployDatabaseSessionTest.php +++ b/appengine/flexible/laravel/test/DeployDatabaseSessionTest.php @@ -92,7 +92,7 @@ private static function addPostDeployCommands($targetDir) { $contents = file_get_contents($targetDir . '/composer.json'); $json = json_decode($contents, true); - $json['scripts']['post-deploy-cmd'] = [ + $json['scripts']['post-install-cmd'] = [ 'chmod -R 755 bootstrap\/cache', 'php artisan cache:clear', ]; diff --git a/appengine/flexible/laravel/test/DeployTest.php b/appengine/flexible/laravel/test/DeployTest.php index f6c89f3812..0063d62cf7 100644 --- a/appengine/flexible/laravel/test/DeployTest.php +++ b/appengine/flexible/laravel/test/DeployTest.php @@ -66,7 +66,7 @@ private static function addPostDeployCommands($targetDir) { $contents = file_get_contents($targetDir . '/composer.json'); $json = json_decode($contents, true); - $json['scripts']['post-deploy-cmd'] = [ + $json['scripts']['post-install-cmd'] = [ 'chmod -R 755 bootstrap\/cache', 'php artisan cache:clear', ]; diff --git a/appengine/flexible/symfony/README.md b/appengine/flexible/symfony/README.md index 7ae6731ff0..6b947389ab 100644 --- a/appengine/flexible/symfony/README.md +++ b/appengine/flexible/symfony/README.md @@ -45,7 +45,7 @@ Add the following scripts to your project's `composer.json`: ```json { "scripts": { - "post-deploy-cmd": [ + "post-install-cmd": [ "chmod -R ug+w $APP_DIR/var" ] } diff --git a/appengine/flexible/symfony/test/DeployTest.php b/appengine/flexible/symfony/test/DeployTest.php index 928c12f029..938feb7a6c 100644 --- a/appengine/flexible/symfony/test/DeployTest.php +++ b/appengine/flexible/symfony/test/DeployTest.php @@ -28,7 +28,7 @@ class DeployTest extends \PHPUnit_Framework_TestCase use AppEngineDeploymentTrait; use ExecuteCommandTrait; - public function beforeDeploy() + public static function beforeDeploy() { // verify and set environment variables self::verifyEnvironmentVariables(); @@ -102,7 +102,7 @@ private static function addPostBuildCommands($targetDir) { $contents = file_get_contents($targetDir . '/composer.json'); $json = json_decode($contents, true); - $json['scripts']['post-deploy-cmd'] = ['chmod -R ug+w $APP_DIR/var']; + $json['scripts']['post-install-cmd'] = ['chmod -R ug+w $APP_DIR/var']; file_put_contents($targetDir . '/composer.json', json_encode($json, JSON_PRETTY_PRINT)); }