RisWis Digital Ocean App Platform Deployment

This is a quick start guide to deploy RisWis to DigitalOcean App Platform.

Quick Start

  1. Clone and prepare the repository

    git clone https://github.com/Linxford/riswis.git
    cd riswis
    git checkout to-office
  2. Generate secure secrets

    bash scripts/generate-do-secrets.sh

    Save the output secrets, you'll need them later.

  3. Deploy to DigitalOcean App Platform

    bash scripts/deploy-to-do.sh
  4. Configure environment variables in the DigitalOcean UI

    • Go to the App Platform dashboard

    • Select your app

    • Go to Settings > Environment Variables

    • Add all the secrets generated in step 2

  5. Check deployment status

    bash scripts/check-do-deployment.sh

Deployment Architecture

The deployment consists of:

  • Backend Service

    • Uses a custom Dockerfile

    • Exposes port 5000

    • Has health check at /api/health

    • Connects to PostgreSQL database and Redis

  • Frontend Service

    • Uses Next.js

    • Built with npm run build

    • Runs with npm run start

Domains

  • Main app: modernsavingsandloans.com

  • API: api.modernsavingsandloans.com

Need More Help?

See the full DEPLOYMENT.md for detailed instructions.

Last updated