Deployment process - AtlasOfLivingAustralia/seasonal-calendar Wiki

  1. Need calendars-dev.ala.org.au to point to profiles-dev.ala.org.au
  2. Build api service seasonal-calendar-api/gradlew assemble
    1. Deploy seasonal-calendar-api/build/distributions/seasonal-calendar-api-1.0-SNAPSHOT.tar.gz to Nexus somehow
  3. Build ui seasonal-calendar-ui/ng build --prod
    1. Zip up seasonal-calendar-ui/dist/seasonal-calendar-ui/
    2. Somehow deploy that zip to Nexus
  4. Create virtual host on server HTTP server
  5. Install postgres, createdb seasonal-calendar, create user seasonal-calendar with all permissions
  6. Deploy api.zip to /opt/atlas/seasonal-calendar-api
  7. Create systemd service for /opt/atlas/seasonal-calendar-api/bin/seasonal-calendar-api.sh
    1. Create config at /data/seasonal-calendar-api/config/config.yml
  8. Deploy ui.zip to DocRoot of virtual host
    1. Setup virtual host to proxy /api to dropwizard
    2. Setup virtual host to send all requests to /index.html otherwise