File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
- # Google Cloud Runtime with nyholm/psr7
1
+ # Google Cloud Runtime
2
2
3
3
A runtime for [ Google Cloud] ( https://cloud.google.com/ ) .
4
4
@@ -38,4 +38,21 @@ still need to create an `index.php`.
38
38
// This file is needed for google cloud
39
39
```
40
40
41
+ ## Troubleshooting
41
42
43
+ ### Cache/Build directory
44
+
45
+ Note that Google Cloud will only deploy files that are not in ` .gitignore ` . You
46
+ need to remove the ` var/ ` entry before deployment to be able to warm up the cache etc.
47
+
48
+ ### Define Symfony environment
49
+
50
+ Define environment variable ` APP_ENV=prod ` to use Symfony production mode.
51
+
52
+ ```
53
+ gcloud functions deploy helloHttp \
54
+ --runtime php74 \
55
+ --trigger-http \
56
+ --allow-unauthenticated \
57
+ --set-env-vars "FUNCTION_SOURCE=public/index.php,APP_ENV=prod"
58
+ ```
You can’t perform that action at this time.
0 commit comments