-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathrun_uwsgi.sh
More file actions
executable file
·25 lines (21 loc) · 742 Bytes
/
run_uwsgi.sh
File metadata and controls
executable file
·25 lines (21 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
python manage.py makemigrations users
python manage.py makemigrations api
python manage.py makemigrations logs
python manage.py makemigrations main
python manage.py makemigrations
python manage.py migrate users
python manage.py migrate auth
python manage.py migrate
python manage.py collectstatic --noinput
service cron start
if grep -Fxq "PLUGINS_ENABLED+=[\"globus\"]" /code/shub/settings/config.py
then
# When configured, we can start the endpoint
echo "Starting Globus Connect Personal"
export USER="tunel-user"
/opt/globus/globusconnectpersonal -start &
fi
# Make sure directories that are shared are created
mkdir -p /var/www/images/_upload/{0..9} && chmod 777 -R /var/www/images/_upload
uwsgi uwsgi.ini