django
Markdown

deployment checklist

Deployment Checklist

Initial Server Setup

  1. Create account on Digital Ocean
  2. Create a droplet
  3. Update and install software

Database Setup

  1. Configure PostgreSQL
    • Install PostgreSQL
    • Create database
    • Configure access permissions

Environment Setup

  1. Create virtual environment
  2. Create user and group
  3. Set up requirements file
  4. Create separate settings file

Code Management

  1. Send code to GitHub
    • Include all static files
    • Verify .gitignore configuration
  2. Get code from GitHub
  3. Set up env file

Application Configuration

  1. Initialize database
    • Run migrations
    • Create superuser if needed
  2. Configure Gunicorn
    • Set up service file
    • Configure workers and bind settings
  3. Set up Supervisor
    • Create configuration file
    • Set up log rotation

Web Server Setup

  1. Set up Nginx
    • Configure server blocks
    • Set up static file serving
  2. Get SSL certificate
    • Install Certbot
    • Configure SSL settings

Second Application Deployment

  1. Database Setup
    • Configure PostgreSQL
    • Set up new database
  2. Environment Setup
    • Create virtual environment
    • Create user
    • Set up requirements file
  3. Application Setup
    • Create separate settings file
    • Send code to GitHub (include static files)
    • Get code from GitHub
    • Set up env file
    • Initialize database
  4. Server Configuration
    • Configure Gunicorn
    • Set up Supervisor
    • Update Nginx configuration