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

Support FLOW_CONTEXT override #97

Open
wants to merge 1 commit into
base: main
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
9 changes: 9 additions & 0 deletions assets/project/.localbeach.dist.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ BEACH_VIRTUAL_HOSTS=${BEACH_PROJECT_NAME_LOWERCASE}.localbeach.net
# Examples: 8.1 for PHP 8.1.x
BEACH_PHP_IMAGE_VERSION=8.3

# Change these if you need to adjust the Flow context
# BEACH_FLOW_BASE_CONTEXT=Production
# BEACH_FLOW_SUB_CONTEXT=Instance

# if you need a custom Flow context instead of the default
# ${BEACH_FLOW_BASE_CONTEXT}/Beach/${BEACH_FLOW_SUB_CONTEXT}
# then you can override FLOW_CONTEXT with
# FLOW_CONTEXT=Development/Special

# Change these if your Flow setup is not in the project root
BEACH_FLOW_ROOTPATH=${BEACH_FLOW_ROOTPATH}
BEACH_APPLICATION_PATH=${BEACH_APPLICATION_PATH}
Expand Down
2 changes: 2 additions & 0 deletions assets/project/.localbeach.docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ services:
- BEACH_PHP_FPM_HOST=${BEACH_PROJECT_NAME:?Please specify a Beach project name as BEACH_PROJECT_NAME}_php
- BEACH_FLOW_BASE_CONTEXT=${BEACH_FLOW_BASE_CONTEXT:-Development}
- BEACH_FLOW_SUB_CONTEXT=${BEACH_FLOW_SUB_CONTEXT:-Instance}
- FLOW_CONTEXT=${FLOW_CONTEXT:-}
- BEACH_PHP_MEMORY_LIMIT=${BEACH_PHP_MEMORY_LIMIT:-750M}
- BEACH_PERSISTENT_RESOURCES_FALLBACK_BASE_URI=${BEACH_PERSISTENT_RESOURCES_FALLBACK_BASE_URI:-}
- FLOW_HTTP_TRUSTED_PROXIES=*
Expand All @@ -43,6 +44,7 @@ services:
- BEACH_INSTANCE_NAME=${BEACH_PROJECT_NAME}
- BEACH_FLOW_BASE_CONTEXT=${BEACH_FLOW_BASE_CONTEXT:-Development}
- BEACH_FLOW_SUB_CONTEXT=${BEACH_FLOW_SUB_CONTEXT:-Instance}
- FLOW_CONTEXT=${FLOW_CONTEXT:-}
- BEACH_DATABASE_HOST=${BEACH_DATABASE_HOST:-local_beach_database.local_beach}
- BEACH_DATABASE_PORT=${BEACH_DATABASE_PORT:-3306}
- BEACH_DATABASE_NAME=${BEACH_PROJECT_NAME}
Expand Down