Skip to content

Commit

Permalink
Merge pull request #150 from SELab-2/deployement_hmr
Browse files Browse the repository at this point in the history
feat(deployment): frontend hmr
  • Loading branch information
francisvaut authored Mar 24, 2024
2 parents 54e2614 + 4ddee95 commit 66a24e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions development.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ done

echo "Checking environment file..."

if [ "$build" = true ]; then
rm .env > /dev/null 2>&1
fi

if ! [ -f .env ]; then
cp .dev.env .env
sed -i "s/^DJANGO_SECRET_KEY=.*/DJANGO_SECRET_KEY=totally_random_key_string/" .env
Expand All @@ -47,8 +51,6 @@ if [ "$build" = true ]; then
echo "Building Docker images..."
echo "This can take a while..."
docker-compose -f development.yml build --no-cache
else
echo "$build"
fi

echo "Starting services..."
Expand Down

0 comments on commit 66a24e0

Please sign in to comment.