Last active
August 6, 2021 04:50
-
-
Save crittermike/f52351e3623dc3433af901946e29f2e9 to your computer and use it in GitHub Desktop.
A sample .platform.app.yaml file for hosting Grav CMS on Platform.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: grav_app # Rename this to whatever you want. | |
type: php:7.1 | |
disk: 1024 | |
web: | |
locations: | |
"/": | |
root: "app" # Assuming Grav lives in an app/ directory. | |
passthru: /index.php | |
expires: 1h | |
mounts: | |
'/app/cache': 'shared:files/cache' | |
'/app/logs': 'shared:files/logs' | |
'/app/images': 'shared:files/images' | |
'/app/assets': 'shared:files/assets' | |
'/app/user/data': 'shared:files/user-data' | |
'/app/backup': 'shared:files/backup' | |
'/app/tmp': 'shared:files/tmp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put this fine in .platform/routes.yaml | |
https://{default}/: | |
type: upstream | |
upstream: grav_app:http |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment