From e526ec84d55ca447ccbed1b205e3ad99e423c674 Mon Sep 17 00:00:00 2001 From: Mitchell Victoriano Date: Mon, 9 Dec 2024 14:18:51 -0800 Subject: [PATCH] Fixed line endings with dos2unix --- valhub/startup.sh | 76 +++++++++++++++++++++++------------------------ 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/valhub/startup.sh b/valhub/startup.sh index 300580ac..bbaa598e 100644 --- a/valhub/startup.sh +++ b/valhub/startup.sh @@ -1,39 +1,39 @@ -#!/bin/bash - -set -e # Exit immediately if a command exits with a non-zero status - -# Define the directory -DIR="/root/valhub" - -cd $DIR - -# Run valhub_makemigrations -echo "Running makemigrations..." -python3 manage.py makemigrations - -# Run valhub_migrate -echo "Running migrations..." -python3 manage.py migrate - -# Run valhub_initial_data -echo "Loading initial data..." -python3 manage.py loaddata initial_data.json - -# Run valhub_collectstatic -echo "Collecting static files..." -python3 manage.py collectstatic --noinput - -# Run valhub_superuser -echo "Creating superuser..." -{ - python3 manage.py createsuperuser --noinput -} || { - echo "Superuser already exists, skipping creation." -} - -# Starting supervisord -echo "Starting supervisord..." -supervisord -c /root/valhub/supervisord.conf -n - -# # Keep the container running +#!/bin/bash + +set -e # Exit immediately if a command exits with a non-zero status + +# Define the directory +DIR="/root/valhub" + +cd $DIR + +# Run valhub_makemigrations +echo "Running makemigrations..." +python3 manage.py makemigrations + +# Run valhub_migrate +echo "Running migrations..." +python3 manage.py migrate + +# Run valhub_initial_data +echo "Loading initial data..." +python3 manage.py loaddata initial_data.json + +# Run valhub_collectstatic +echo "Collecting static files..." +python3 manage.py collectstatic --noinput + +# Run valhub_superuser +echo "Creating superuser..." +{ + python3 manage.py createsuperuser --noinput +} || { + echo "Superuser already exists, skipping creation." +} + +# Starting supervisord +echo "Starting supervisord..." +supervisord -c /root/valhub/supervisord.conf -n + +# # Keep the container running # tail -f /dev/null \ No newline at end of file