diff --git a/scripts/after_install_dev.sh b/scripts/after_install_dev.sh index 9ddc0a1..8088819 100755 --- a/scripts/after_install_dev.sh +++ b/scripts/after_install_dev.sh @@ -51,8 +51,9 @@ poetry run python manage.py showmigrations >> "$LOG_FILE" 2>&1 # Logging full o PENDING_MIGRATIONS=$(poetry run python manage.py showmigrations | grep "\[ \]" | wc -l) # Count unapplied migrations if [ "$PENDING_MIGRATIONS" -gt 0 ]; then - echo "Migrations found; stopping services..." >> "$LOG_FILE" - sudo systemctl stop gunicorn-dev celery-indexer-worker-dev celery-beat-worker-dev celery-beat-dev + # COMMENTING OUT FOR NOW AS I BELIEVE STOPPING SERVICES CREATES UNNECESSARY DOWNTIME + # echo "Migrations found; stopping services..." >> "$LOG_FILE" + # sudo systemctl stop gunicorn-dev celery-indexer-worker-dev celery-beat-worker-dev celery-beat-dev echo 'Applying migrations...' >> "$LOG_FILE" poetry run python manage.py migrate >> "$LOG_FILE" 2>&1 diff --git a/scripts/after_install_testnet.sh b/scripts/after_install_testnet.sh index a1788dc..628e056 100755 --- a/scripts/after_install_testnet.sh +++ b/scripts/after_install_testnet.sh @@ -51,8 +51,9 @@ poetry run python manage.py showmigrations >> "$LOG_FILE" 2>&1 # Logging full o PENDING_MIGRATIONS=$(poetry run python manage.py showmigrations | grep "\[ \]" | wc -l) # Count unapplied migrations if [ "$PENDING_MIGRATIONS" -gt 0 ]; then - echo "Migrations found; stopping services..." >> "$LOG_FILE" - sudo systemctl stop gunicorn-testnet celery-indexer-worker-testnet celery-beat-worker-testnet celery-beat-testnet + # COMMENTING OUT FOR NOW AS I BELIEVE STOPPING SERVICES IS UNNECESSARY + # echo "Migrations found; stopping services..." >> "$LOG_FILE" + # sudo systemctl stop gunicorn-testnet celery-indexer-worker-testnet celery-beat-worker-testnet celery-beat-testnet echo 'Applying migrations...' >> "$LOG_FILE" poetry run python manage.py migrate >> "$LOG_FILE" 2>&1