Skip to content

Commit

Permalink
Stopper run.sh når docker-compose feiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
perchrnie committed Oct 27, 2023
1 parent e8c0f89 commit d7ee1e6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,13 @@ docker-compose stop

# kjør opp tjenester (dette migrerer databasen til nyeste versjon)
docker-compose up -d
sleep 5

# kjør opp frontend
cd client
npm install
npm run dev
if [ $? -eq 0 ]
then
sleep 5

# kjør opp frontend
cd client
npm install
npm run dev
fi

0 comments on commit d7ee1e6

Please sign in to comment.