A book review social media website
- Clone the project
- Install dotnet sdk/runtime
- Install postgreSQL
- Run
dotnet tool install --global dotnet-ef
- Update Context.cs to have connection string to database
- Update appsettings.json to have connection string to database
- Run
dotnet ef database update --project Data
- Start project
- Install heroku ci
- Install docker
heroku login
heroku containger:login
cd to Bookish top level
heroku container:push web -a bookish-team2 --context-path={Path to top level repo}
cd to Bookish Server
heroku container:release web -a bookish-team2
- Login to heroku
- Get the connection string
- Add to Context.cs Design time database
- MAKE SURE TO ADD SSL MODE=Require and TrustServerCertificate=True;
- Run
dotnet ef database update --project Data