You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
472 B
20 lines
472 B
#!/bin/bash
|
|
|
|
### DO NOT EDIT THIS FILE
|
|
|
|
source "$(dirname "${BASH_SOURCE[0]}")/../includes/includes.sh"
|
|
app_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." &> /dev/null && pwd)
|
|
source "$app_dir/etc/config.sh"
|
|
|
|
env=$(getArgument $1 "Usage: switch_local_env.sh [live|stage]" "live stage")
|
|
|
|
echoMainTitle "Switching local system to $env"
|
|
|
|
|
|
|
|
echoFinal "... local environment switched"
|
|
|
|
echo "Running postscript ..."
|
|
postScript "$app_dir/bin/postscripts/switch_local_env.sh"
|
|
|
|
|