chore (dev): check if URL has been set in dev/docker-entrypoint.sh
This commit is contained in:
parent
d139b0dd1f
commit
90a33b2371
1 changed files with 6 additions and 3 deletions
|
@ -23,9 +23,12 @@ if [ ! -f '/.firefish_env_initialized' ]; then
|
|||
# Configuring a new server
|
||||
cd /firefish
|
||||
cp .config/devenv.yml .config/default.yml
|
||||
|
||||
if [ -n "${URL-}" ]; then
|
||||
URL="$(echo "${URL}" | sed 's#/#\\/#g')"
|
||||
sed -i'.bak' "s/http:\/\/localhost:3000/${URL}/g" .config/default.yml
|
||||
rm .config/defaut.yml.bak
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue