Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yuseferi/e86a226edbf664526a1ca5a933b710cb to your computer and use it in GitHub Desktop.
Save yuseferi/e86a226edbf664526a1ca5a933b710cb to your computer and use it in GitHub Desktop.
# Name the application the same as in your .platform.app.yaml.
name: PROJECT_NAME
# Use the recipe appropriate for your application.
recipe: drupal8
config:
# Lando defaults to Apache. Switch to nginx to match Platform.sh.
via: nginx
# Set the webroot to match your .platform.app.yaml.
webroot: web
# Lando defaults to the latest MySQL release, but Platform.sh uses MariaDB.
# Specify the version to match what's in services.yaml.
database: mariadb:10.2
xdebug: true
services:
pma:
type: phpmyadmin
hosts:
- database
database:
type: mariadb
appserver:
run:
- "mkdir -p /var/www/.platformsh && mkdir -p /var/www/.platformsh/bin"
- "curl -fsSL -o /var/www/.platformsh/bin/platform https://github.com/platformsh/platformsh-cli/releases/download/v3.36.0/platform.phar"
- "chmod ug+x /var/www/.platformsh/bin/platform"
- "cd $LANDO_MOUNT && composer install"
# The following entry creates a `lando platform` command that will run
# any Platform CLI command from inside the container if desired.
tooling:
platform:
service: appserver
description: Run Platform CLI commands
cmd: /var/www/.platformsh/bin/platform
phplint:
service: appserver
cmd: /app/vendor/bin/phplint
phpcs:
service: appserver
cmd: /app/vendor/bin/phpcs
phpunit:
service: appserver
cmd: /app/vendor/bin/phpunit
behat:
service: appserver
cmd: /app/vendor/bin/behat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment