parent
6756e4064e
commit
65672c404a
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mkdir -p /outputs/public
|
||||
# this sed command will replace the included `profile/dev-config-profile.php` to `profile/prod-config-file.php` in the config.php file.
|
||||
sed -E -i 's/\/\*PROFILE_FILE\*\/\s*".*"/"profiles\/prod-config-profile.php"/' config.php
|
||||
DRONE_BRANCH_ESCAPED=$(sed -E 's/\//\\\//g' <<< "$DRONE_BRANCH")
|
||||
sed -E -i "s/const BASE_PATH = .*;/const BASE_PATH = \"\/IQBall\/$DRONE_BRANCH_ESCAPED\/public\";/" profiles/prod-config-profile.php
|
||||
rm profiles/dev-config-profile.php
|
||||
mv src config.php sql profiles vendor /outputs/
|
Loading…
Reference in new issue