Skip to content

Commit

Permalink
Update entrypoint
Browse files Browse the repository at this point in the history
cleanup in env variable
  • Loading branch information
wmuldergov authored and fatbird committed Jan 26, 2024
1 parent 83acc68 commit fb8d9f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compose/frontend/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ echo -e "window.ROUTE_PLANNER_KEY='${REACT_APP_ROUTE_PLANNER_KEY}';" >> $MAIN
echo -e "window.REPLAY_THE_DAY='${REACT_APP_REPLAY_THE_DAY}';" >> $MAIN

#FOLLOWING SECTION IS TEMPORARY FOR THE PRIVATE BETA
# Check if $ENVIRONMENT is not set to "Prod". If it is prod we want to keep these lines
if [ "$ENV" != "Prod" ]; then
# Remove the specified lines from nginx.conf
# Check if $ENVIRONMENT is not set to "prod". If it is prod we want to keep these lines
if [ "$ENVIRONMENT" != "prod" ]; then
# Remove the specified lines from default.conf
sed -i '/auth_basic "Beta Site";/d' /etc/nginx/conf.d/default.conf
sed -i '/auth_basic_user_file \/etc\/apache2\/.htpasswd;/d' /etc/nginx/conf.d/default.conf
fi
Expand Down

0 comments on commit fb8d9f2

Please sign in to comment.