Last active
September 9, 2016 16:28
-
-
Save heddn/adc0bc2e61acc13394659de291500d1a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# This file describes an application. You can have multiple applications | |
# in the same project. | |
# The name of this app. Must be unique within a project. | |
name: app | |
# The runtime the application uses. | |
type: 'php:7.0' | |
# Configuration of the build of this application. | |
build: | |
flavor: composer | |
access: | |
ssh: admin | |
# The relationships of the application with services or other applications. | |
# The left-hand side is the name of the relationship as it will be exposed | |
# to the application in the PLATFORM_RELATIONSHIPS variable. The right-hand | |
# side is in the form `<service name>:<endpoint name>`. | |
relationships: | |
database: 'mysql:mysql' | |
solr: 'solr:solr' | |
# redis: 'redis:redis' | |
# The configuration of app when it is exposed to the web. | |
web: | |
# Specific parameters for different URL prefixes. | |
locations: | |
'/': | |
# The folder to serve static assets for this location from. | |
# (Relative to the application root.) | |
root: 'web' | |
# How long to allow static assets from this location to be cached. | |
# (Can be a time or -1 for no caching. Times can be suffixed with | |
# "ms" (milliseconds), "s" (seconds), "m" (minutes), "h" (hours), | |
# "d" (days), "w" (weeks), "M" (months, 30d) or "y" (years, 365d).) | |
expires: -1 | |
# Whether to forward disallowed and missing resources from this | |
# location to the application. | |
# (Can be true, false or a URI path string.) | |
passthru: '/index.php' | |
'/patternlab': | |
root: 'patternlab/public' | |
expires: -1 | |
passthru: '/patternlab/public/index.php' | |
# The size of the persistent disk of the application (in MB). | |
disk: 1024 | |
# The mounts that will be performed when the package is deployed. | |
mounts: | |
'/web/sites/default/files': 'shared:files/files' | |
'/tmp': 'shared:files/tmp' | |
'/private': 'shared:files/private' | |
'/drush-backups': 'shared:files/drush-backups' | |
'/patternlab/public': 'shared:files/patternlab' | |
dependencies: | |
php: | |
drush/drush: '~8' | |
hirak/prestissimo: '^0.3' | |
nodejs: {} | |
# The hooks executed at various points in the lifecycle of the application. | |
hooks: | |
build: | | |
cd patternlab | |
npm install | |
node_modules/.bin/bower install | |
node_modules/.bin/gulp | |
deploy: | | |
date | |
cd web | |
# drush cim -y | |
# drush updb -y | |
# drush cr | |
# The configuration of scheduled execution. | |
crons: | |
drupal: | |
spec: '*/20 * * * *' | |
cmd: 'cd web; drush core-cron' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment