mirror of
https://github.com/amineo/t2-stat-parser.git
synced 2026-07-11 22:34:34 +00:00
Use cron to the keep the container alive
This commit is contained in:
parent
e596b0ca7c
commit
15d89ae5e1
3 changed files with 4 additions and 3 deletions
|
|
@ -5,5 +5,5 @@ echo "T2 Stat Parser Running...";
|
|||
# Run this initially, then we'll execute this on a schedule
|
||||
./start.sh
|
||||
|
||||
# Keep container running
|
||||
tail -f /dev/null
|
||||
# Keep container running with the cron schedule
|
||||
crond -l 2 -f
|
||||
|
|
@ -7,5 +7,6 @@ then
|
|||
/app/main
|
||||
else
|
||||
echo "No build found, running from source"
|
||||
cd /app
|
||||
go run *.go
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue