Skip to content

Commit

Permalink
reverting dockerfile + start script changes
Browse files Browse the repository at this point in the history
reverting to DB_HOST='' since setting it to db probably isnt the best idea.

Also removing the DB_HOST fallback in start_script.sh since it'll be caught in config.py
  • Loading branch information
nataliejschultz committed May 24, 2024
1 parent da485c2 commit e6b388b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN chmod u+x ./.docker/setup_config.sh
RUN bash -c "./.docker/setup_config.sh"

# #declare environment variables
ENV DB_HOST=db
ENV DB_HOST=''
ENV WEB_SERVER_HOST=0.0.0.0

ENV LIVERELOAD_SRC=''
Expand Down
5 changes: 0 additions & 5 deletions setup/tests/start_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ cd /src/e-mission-server

#set database URL using environment variable
echo ${DB_HOST}
if [ -z ${DB_HOST} ] ; then
local_host=`hostname -i`
export DB_HOST=$local_host
echo "Setting db host environment variable to localhost"
fi

export WEB_SERVER_HOST=0.0.0.0
cat conf/storage/db.conf
Expand Down

0 comments on commit e6b388b

Please sign in to comment.