We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ac2b79 commit a042e45Copy full SHA for a042e45
README.md
@@ -1,4 +1,4 @@
1
-# Google Cloud Runtime with nyholm/psr7
+# Google Cloud Runtime
2
3
A runtime for [Google Cloud](https://cloud.google.com/).
4
@@ -38,4 +38,21 @@ still need to create an `index.php`.
38
// This file is needed for google cloud
39
```
40
41
+## Troubleshooting
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
0 commit comments