Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.34 KB

README.md

File metadata and controls

48 lines (32 loc) · 1.34 KB

Alloy MVC template

This template should not be seen as best practices, but as a great way to learn and test Optimizely CMS.

How to run

Chose one of the following options to get started.

Windows

Prerequisities

  • .NET SDK 8+
  • SQL Server 2016 Express LocalDB (or later)
$ dotnet run

Any OS with Docker

Prerequisities

  • Docker
  • Enable Docker support when applying the template
  • Review the .env file and make changes where necessary to the Docker-related variables
$ docker-compose up

Note that this Docker setup is just configured for local development. Follow this guide to enable HTTPS.

Reclaiming Docker Image Space

  1. Backup the App_Data/${DB_NAME}.mdf and App_Data/${DB_NAME}.ldf DB restoration files for safety
  2. Run docker compose down --rmi all to remove containers, networks, and images associated with the specific project instance
  3. In the future, run docker compose up anytime you want to recreate the images and containers

Any OS with external database server

Prerequisities

  • .NET SDK 8+
  • SQL Server 2016 (or later) on a external server, e.g. Azure SQL

Create an empty database on the external database server and update the connection string accordingly.

$ dotnet run