mirror of
https://github.com/sissbruecker/linkding
synced 2024-09-20 05:51:56 +00:00
14 lines
349 B
Bash
Executable file
14 lines
349 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Bootstrap script that gets executed in new Docker containers
|
|
|
|
# Set host name in settings if it was passed as environment variable
|
|
if [[ -v HOST_NAME ]]
|
|
then
|
|
printf "ALLOWED_HOSTS=['%s']" $HOST_NAME > ./siteroot/settings_custom.py
|
|
fi
|
|
|
|
# Run database migration
|
|
python manage.py migrate
|
|
|
|
# Start uwsgi server
|
|
uwsgi uwsgi.ini
|