Skip to content

Commit

Permalink
Fixed line endings with dos2unix
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellAV committed Dec 9, 2024
1 parent 9711387 commit e526ec8
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions valhub/startup.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e526ec8

Please sign in to comment.