- Set Environment Variable
ASPNETCORE_ENVIRONMENT
toProduction
- 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>;
- Add Administrator Role to one user
dotnet run CrowdSource.dll SetUserRole <email> Administrator
- SeedDb or import SQL
- (Preferably) Set global options
Run within the Postgres container:
pg_dump --dbname=crowdsource --username=cs --password -f <file location>
Run within the Postgres container:
psql --username=cs crowdsource < backup.sql