Skip to content

Commit

Permalink
Merge pull request Langres-App#186 from Langres-App/183-front-change-…
Browse files Browse the repository at this point in the history
…of-logo-and-app-name-accordingly-to-the-rebranding

183 front change of logo and app name accordingly to the rebranding
  • Loading branch information
kiloutyg authored Jul 18, 2024
2 parents b12c8d4 + 58f2064 commit 21a1b8a
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions env-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,8 @@ echo ".env file created successfully!"

if [ "${APP_CONTEXT}" == "prod" ]
then

APP_CONTEXT="dev"
sed -i "s|^APP_ENV=prod.*|APP_ENV=dev|" .env
sed -i "s|^APP_ENV=dev.*|APP_ENV=prod|" .env
APP_CONTEXT="prod"

# Create docker-compose.override.yml file to use the good entrypoint
cat > docker-compose.override.yml <<EOL
Expand Down Expand Up @@ -198,18 +197,9 @@ networks:
EOL


sg docker -c "docker compose up --build -d"

sleep 90

sg docker -c "docker compose stop"

sleep 30

sed -i "s|^APP_ENV=dev.*|APP_ENV=prod|" .env
APP_CONTEXT="prod"

else
APP_CONTEXT="dev"
sed -i "s|^APP_ENV=prod.*|APP_ENV=dev|" .env

# Create docker-compose.override.yml file to use the good entrypoint
cat > docker-compose.override.yml <<EOL
Expand Down

0 comments on commit 21a1b8a

Please sign in to comment.