Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];
Expand Down
2 changes: 1 addition & 1 deletion appengine/flexible/laravel/test/DeployTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];
Expand Down
2 changes: 1 addition & 1 deletion appengine/flexible/symfony/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
Expand Down
4 changes: 2 additions & 2 deletions appengine/flexible/symfony/test/DeployTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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));
}

Expand Down