Skip to content

Commit a042e45

Browse files
authored
Updated readme (#33)
1 parent 7ac2b79 commit a042e45

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Google Cloud Runtime with nyholm/psr7
1+
# Google Cloud Runtime
22

33
A runtime for [Google Cloud](https://cloud.google.com/).
44

@@ -38,4 +38,21 @@ still need to create an `index.php`.
3838
// This file is needed for google cloud
3939
```
4040

41+
## Troubleshooting
4142

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

Comments
 (0)