Skip to content

Commit

Permalink
Merge pull request #46 from mischaikow/refine-script
Browse files Browse the repository at this point in the history
Refining the boot script
  • Loading branch information
mischaikow authored Nov 16, 2024
2 parents 01a98c9 + e88b311 commit 94ec11b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
dist
coverage
logs/*.log
**/*.code-workspace
**/*.code-workspace
.DS_Store
6 changes: 2 additions & 4 deletions build_run_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ docker run --rm -d -p 3000:3000 -e NODE_ENV=production \
--network=mischaikow-home --name mischaikow-server --init site/server

sleep 90s
server=curl http://127.0.0.1:3000/healthcheck
server=$(curl http://127.0.0.1:3000/healthcheck)
dt=$(date '+%d/%m/%Y %H:%M:%S')
if [ $server == 'OK']
if [ $server == 'OK' ];
then
echo 'Server is operating' $dt
else
Expand All @@ -43,8 +43,6 @@ else
echo 'Nginx is NOT up and running -- check reverse proxy' $dt
fi

docker system prune -f

dt=$(date '+%d/%m/%Y %H:%M:%S')
echo 'Script complete at' $dt
unset dt

0 comments on commit 94ec11b

Please sign in to comment.