Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (22 loc) · 699 Bytes

Deployment.md

File metadata and controls

30 lines (22 loc) · 699 Bytes

Deployment Procedures

  1. Set Environment Variable ASPNETCORE_ENVIRONMENT to Production
  2. Set Environment Variable ConnectionSettings:DefaultConnection to PostgreSQL connection string, such as:
Server=127.0.0.1;Port=5432;Database=crowdsource;User Id=<user>;Password=<password>;
  1. Add Administrator Role to one user
dotnet run CrowdSource.dll SetUserRole <email> Administrator
  1. SeedDb or import SQL
  2. (Preferably) Set global options

Backup

Run within the Postgres container:

pg_dump --dbname=crowdsource --username=cs --password -f <file location>

Restore backup

Run within the Postgres container:

psql --username=cs crowdsource < backup.sql