Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A sample .platform.app.yaml file for hosting Grav CMS on Platform.sh
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'
# 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