-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from falko189/master
Added few helpers to the plan.sh
- Loading branch information
Showing
3 changed files
with
60 additions
and
46 deletions.
There are no files selected for viewing
This file contains 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 contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
|
||
DEVELOPMENT_MODE=${DEVELOPMENT_MODE:-true} | ||
DEVELOPMENT_MODE="$(convert_to_boolean_string "$DEVELOPMENT_MODE")" | ||
export DEVELOPMENT_MODE | ||
|
||
COMPOSER_INSTALL_FLAGS="--no-interaction --optimize-autoloader --ignore-platform-reqs" | ||
|
||
if [ -z "$DEVELOPMENT_MODE" ] || [ "$DEVELOPMENT_MODE" != 'true' ]; then | ||
DEFAULT_COMPOSER_FLAGS="${DEFAULT_COMPOSER_FLAGS} --no-dev " | ||
fi | ||
|
||
export COMPOSER_INSTALL_FLAGS=${COMPOSER_INSTALL_FLAGS:-$COMPOSER_INSTALL_FLAGS} | ||
|
||
START_MODE_CRON=${START_MODE_CRON:-true} | ||
START_MODE_CRON="$(convert_to_boolean_string "$START_MODE_CRON")" | ||
export START_MODE_CRON | ||
|
||
START_MODE_WEB=${START_MODE_WEB:-true} | ||
START_MODE_WEB="$(convert_to_boolean_string "$START_MODE_WEB")" | ||
export START_MODE_WEB | ||
|
||
WEB_HTTPS_ONLY=${WEB_HTTPS_ONLY:-true} | ||
WEB_HTTPS_ONLY="$(convert_to_boolean_string "$WEB_HTTPS_ONLY")" | ||
export WEB_HTTPS_ONLY | ||
|
||
START_HORIZON=${START_HORIZON:-false} | ||
START_HORIZON="$(convert_to_boolean_string "$START_HORIZON")" | ||
export START_HORIZON | ||
|
||
START_QUEUE=${START_QUEUE:-true} | ||
START_QUEUE="$(convert_to_boolean_string "$START_QUEUE")" | ||
export START_QUEUE | ||
|
||
RUN_LARAVEL_CRON=${RUN_LARAVEL_CRON:-false} | ||
RUN_LARAVEL_CRON="$(convert_to_boolean_string "$RUN_LARAVEL_CRON")" | ||
export RUN_LARAVEL_CRON | ||
|
||
AUTH_HTTP_ENABLED=${AUTH_HTTP_ENABLED:-false} | ||
AUTH_HTTP_ENABLED="$(convert_to_boolean_string "$AUTH_HTTP_ENABLED")" | ||
export AUTH_HTTP_ENABLED | ||
|
||
export AUTH_HTTP_REALM=${AUTH_HTTP_REALM:-"Protected System"} | ||
export AUTH_HTTP_FILE=/etc/nginx/custom-htpasswd-path | ||
|
||
export WORK_DIRECTORY=${WORK_DIRECTORY:-/app} | ||
export WEB_DIRECTORY=${WEB_DIRECTORY:-${WORK_DIRECTORY}/public} |
This file contains 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