diff --git a/command b/command index 4d5ce67..c9793a4 100644 --- a/command +++ b/command @@ -22,8 +22,9 @@ docker run --rm --network app-net --name instagram_links_app \ docker run -d \ --name watchtower_app \ -v /var/run/docker.sock:/var/run/docker.sock \ +-v /root/.docker/config.json:/config.json \ containrrr/watchtower \ -instagram_links_app +--interval 30 instagram_links_app pip install gunicorn diff --git a/running.sh b/running.sh index df0f1fd..718396c 100755 --- a/running.sh +++ b/running.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash +rm -rf /staticFiles && \ python manage.py collectstatic && \ - python manage.py migrate && \ - gunicorn wsgi:application --bind 0.0.0.0:8000 \ No newline at end of file +python manage.py migrate && \ +gunicorn wsgi:application --bind 0.0.0.0:8000 \ No newline at end of file