Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Good Lando defaults #607

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .lando.upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This file sets some good defaults for local development using this Platform.sh
# template with Lando.
#
# Note that you should not edit this file so it can continue to receive upstream
# updates. If you wish to change the values below then override them in your
# normal .lando.yml.

# These both allow you to test this template without needing a site on Platform.sh
# However you will want to replace them in your .lando.yml
name: platformsh-ezplatform
recipe: platformsh

config:

# This section overrides Platform.sh configuration with values that make more
# sense for local development.
#
# Note that "app" is the name of the application defined in your
# .platform.app.yaml or applications.yaml.
overrides:
app:
variables:
env:
APP_ENV: dev
APP_DEBUG: 1

# These are tools that are commonly used during development for this template.
tooling:
console:
cmd: /app/bin/console
service: app

6 changes: 5 additions & 1 deletion .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ hooks:
echo "See: https://docs.platform.sh/tutorials/composer-auth.html#set-the-envcomposerauth-project-variable"
fi

composer install --no-dev --prefer-dist --no-progress --no-interaction --optimize-autoloader
if [ $APP_ENV != "prod" ]; then
composer install
else
composer install --no-dev --prefer-dist --no-progress --no-interaction --optimize-autoloader
fi

# Deploy hook, access to services & done once (per cluster, not per node), only mounts are writable at this point
# Note: Http traffic is paused while this is running, so for prod code this should finish as fast as possible, < 30s
Expand Down