mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 21:39:49 +00:00
minimal viable product
This commit is contained in:
20
run.sh
Normal file
20
run.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
# startup script inside the container for tubearchivist
|
||||
|
||||
counter=0
|
||||
until curl "$ES_URL" -fs; do
|
||||
echo "waiting for elastic search to start"
|
||||
counter=$((counter+1))
|
||||
if [[ $counter -eq 12 ]]; then
|
||||
# fail after 1 min
|
||||
echo "failed to connect to elastic search, exiting..."
|
||||
exit 1
|
||||
fi
|
||||
sleep 5
|
||||
done
|
||||
|
||||
python manage.py migrate
|
||||
python manage.py collectstatic
|
||||
nginx &
|
||||
celery -A home.tasks worker --loglevel=INFO --detach
|
||||
uwsgi --ini uwsgi.ini
|
||||
Reference in New Issue
Block a user