jncc / marine-habitat-classification

Marine Habitat Classification subsite
1 stars 1 forks source link

marine-habitat-classification

Marine Habitat Classification subsite

Development

Database set up

`EXEC sp_configure 'contained', 1; RECONFIGURE;

RESTORE DATABASE "umbraco-cms" FROM DISK = 'D:\workspace\marine-habitat-classification\website\App_Data\MSSQL_Backup\umbraco-cms_db_20180205.bak';`

Local configuration

`

`

  • The file website\umbracoConnectionStrings.config contains the connection string to your umbraco-cms database, e.g.

`

`

You should make sure that your local databases are named as such. These settings and others are altered by the deployment process.

Local run

  • Right click the microservices project and set as start up project, then start it in Visual Studio (Ctrl+F5)
  • Right click the website project and set as start up project, then start it in Visual Studio (Ctrl+F5)

Local build (as on build/deployment server)

As well as Visual Studio 2017, I installed https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017

Open the Developer Command Prompt for VS2017.

msbuild /p:Configuration=Release /p:RunOctoPack=true /p:OctoPackPackageVersion=0.0.0.0 /p:OctoPackPublishPackageToHttp=http://deployment-srv/nuget/packages /p:OctoPackPublishingApiKey=API-BLAH