Skip to content

Commit 80872ab

Browse files
authored
adds cache:clear to laravel examples (GoogleCloudPlatform#398)
1 parent 519cb6c commit 80872ab

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

appengine/flexible/laravel/test/DeployDatabaseSessionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ private static function addPostDeployCommands($targetDir)
9494
$json = json_decode($contents, true);
9595
$json['scripts']['post-deploy-cmd'] = [
9696
'chmod -R 755 bootstrap\/cache',
97+
'php artisan cache:clear',
9798
];
9899
$newContents = json_encode($json, JSON_PRETTY_PRINT);
99100
file_put_contents($targetDir . '/composer.json', $newContents);

appengine/flexible/laravel/test/DeployTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ private static function addPostDeployCommands($targetDir)
6868
$json = json_decode($contents, true);
6969
$json['scripts']['post-deploy-cmd'] = [
7070
'chmod -R 755 bootstrap\/cache',
71+
'php artisan cache:clear',
7172
];
7273
$newContents = json_encode($json, JSON_PRETTY_PRINT);
7374
file_put_contents($targetDir . '/composer.json', $newContents);

0 commit comments

Comments
 (0)