Hi, I’m trying to deploy my Wagtail application but I have no idea what the best practices are in DigitalOcean. Can someone help?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hey @itsremco,
I’ll be happy to assist.
SSH into the Droplet: Once the Droplet is created, you can SSH into it using the command line. Open your terminal (or use an SSH client like PuTTY on Windows) and connect to the Droplet using its IP address and your ssh key
Update the System: After logging in, update the system packages to ensure you have the latest software:
sudo apt update
sudo apt upgrade
sudo apt install python3-pip python3-venv git
python3 -m venv myprojectenv
source myprojectenv/bin/activate
git clone your_repo_url myproject
cd myproject
pip install -r requirements.txt
https://www.digitalocean.com/products/managed-databases-postgresql
python manage.py migrate
python manage.py createsuperuser
python manage.py collectstatic
python manage.py runserver 0.0.0.0:8000
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.