Skip to content

Commit 46d6565

Browse files
authored
update flex to use post-install-cmd (GoogleCloudPlatform#452)
1 parent b29cf54 commit 46d6565

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

appengine/flexible/laravel/test/DeployDatabaseSessionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private static function addPostDeployCommands($targetDir)
9292
{
9393
$contents = file_get_contents($targetDir . '/composer.json');
9494
$json = json_decode($contents, true);
95-
$json['scripts']['post-deploy-cmd'] = [
95+
$json['scripts']['post-install-cmd'] = [
9696
'chmod -R 755 bootstrap\/cache',
9797
'php artisan cache:clear',
9898
];

appengine/flexible/laravel/test/DeployTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private static function addPostDeployCommands($targetDir)
6666
{
6767
$contents = file_get_contents($targetDir . '/composer.json');
6868
$json = json_decode($contents, true);
69-
$json['scripts']['post-deploy-cmd'] = [
69+
$json['scripts']['post-install-cmd'] = [
7070
'chmod -R 755 bootstrap\/cache',
7171
'php artisan cache:clear',
7272
];

appengine/flexible/symfony/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Add the following scripts to your project's `composer.json`:
4545
```json
4646
{
4747
"scripts": {
48-
"post-deploy-cmd": [
48+
"post-install-cmd": [
4949
"chmod -R ug+w $APP_DIR/var"
5050
]
5151
}

appengine/flexible/symfony/test/DeployTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class DeployTest extends \PHPUnit_Framework_TestCase
2828
use AppEngineDeploymentTrait;
2929
use ExecuteCommandTrait;
3030

31-
public function beforeDeploy()
31+
public static function beforeDeploy()
3232
{
3333
// verify and set environment variables
3434
self::verifyEnvironmentVariables();
@@ -102,7 +102,7 @@ private static function addPostBuildCommands($targetDir)
102102
{
103103
$contents = file_get_contents($targetDir . '/composer.json');
104104
$json = json_decode($contents, true);
105-
$json['scripts']['post-deploy-cmd'] = ['chmod -R ug+w $APP_DIR/var'];
105+
$json['scripts']['post-install-cmd'] = ['chmod -R ug+w $APP_DIR/var'];
106106
file_put_contents($targetDir . '/composer.json', json_encode($json, JSON_PRETTY_PRINT));
107107
}
108108

0 commit comments

Comments
 (0)