Last active
June 14, 2023 13:49
-
-
Save mashcom/91c016e54ff0196e70dd2b172435eac2 to your computer and use it in GitHub Desktop.
3_install_database.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## DATABASE MIGRATIONS | |
set -eu | |
# Run database migrations | |
sudo venvs/django/bin/python manage.py makemigrations | |
sudo venvs/django/bin/python manage.py migrate | |
#create application super user | |
sudo venvs/django/bin/python manage.py createsuperuser | |
#install snapd | |
sudo apt update | |
sudo apt install snapd | |
sudo snap install core; sudo snap refresh core | |
#install certbot | |
sudo apt-get remove certbot | |
sudo snap install --classic certbot | |
sudo ln -s /snap/bin/certbot /usr/bin/certbot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment