O'Reilly logo

Continuous Integration, Delivery, and Deployment by Sander Rossel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

PostgreSQL

The last thing that remains is our production database. We can quite easily set up our new database as we still have all the scripts we need to set it up. Do not worry about all the pgTap scripts. We are not going to test this database; we already did that on our development database after all. Simply run the CREATE DATABASE script in pgAdmin, but be sure to rename the database to something such as "webshop-prod" (quotes necessary):

CREATE DATABASE "webshop-prod"   [...]

Now open the query tool on the new database and execute the rest of the scripts.

To configure our database connection string in .NET Core, we will need to do a little refactoring (and do things the correct way). We can add the connection strings to the appsettings.json ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required