Skip to content

Commit

Permalink
Merge pull request #97 from flownative/feature/flow-context-override
Browse files Browse the repository at this point in the history
Support FLOW_CONTEXT override
  • Loading branch information
kdambekalns authored Oct 2, 2024
2 parents a1b8791 + fa6a261 commit 6069fc6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
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

0 comments on commit 6069fc6

Please sign in to comment.