Skip to content

Instantly share code, notes, and snippets.

@crittermike
Last active August 6, 2021 04:50
Show Gist options
  • Save crittermike/f52351e3623dc3433af901946e29f2e9 to your computer and use it in GitHub Desktop.
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
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