Skip to content

Instantly share code, notes, and snippets.

@mashcom
Last active June 14, 2023 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mashcom/91c016e54ff0196e70dd2b172435eac2 to your computer and use it in GitHub Desktop.
Save mashcom/91c016e54ff0196e70dd2b172435eac2 to your computer and use it in GitHub Desktop.
3_install_database.sh
## 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