Commit e1e932e2 authored by Viet Hoang's avatar Viet Hoang

Merge branch 'Release-3.0.1' into 'master'

Release 3.0.1

See merge request viet.hoang/my-simple-framework!101
parents a65255f8 a0b338e3
......@@ -57,6 +57,9 @@ The following applications/tools/utilities are required on your local machine. T
+ launch PowerShell as an administrator
+ change directory to **your Docker folder** (Ex: "D:\\my-simple-framework\\Docker")
+ execute **.\build -target Deploy-Docker**
1. test your container-based development environment: open a browser, navigate to the following URLs and then you should see them without any errors:
+ [https://hoavi.viethoang.local/](https://hoavi.viethoang.local/)
+ [https://demo.viethoang.local/](https://demo.viethoang.local/)
## (Optional) Step-by-step Guide for vanilla Sitecore instance
1. Take a look at [this one](https://buoctrenmay.com/2020/08/10/sitecore-xp-10-initial-release-install-uninstall-by-using-sitecore-install-framework-version-2-3/) to setup a new **Sitecore 10.0.0** instance whose site name should be `cm.viethoang.local`
......@@ -65,12 +68,12 @@ The following applications/tools/utilities are required on your local machine. T
1. Site bindings:
+ bind the host names `hoavi.viethoang.local`, `demo.viethoang.local` to your Sitecore site (created in Step 1) via IIS
1. rename **cake-config.json.example** to **cake-config.json** and then update the following ones:
+ `WebsiteRoot` to **your Sitecore webroot folder** (Ex: "D:\\\\websites\\\\viethoang.local")
+ `InstanceUrl` to **your Sitecore instance url** (Ex: "https://viethoang.local/")
+ `WebsiteRoot` to **your Sitecore webroot folder** (Ex: "D:\\\\websites\\\\cm.viethoang.local")
+ `InstanceUrl` to **your Sitecore instance url** (Ex: "https://cm.viethoang.local/")
+ `ProjectFolder` to **your solution directory** (Ex: "D:\\\\my-simple-framework")
+ `BuildToolVersions` to **your MS Build version** (Ex: "VS2019")
1. rename **publishsettings.targets.example** to **publishsettings.targets** and then update the following one:
+ `<publishUrl>` to **your sitecore instance url** in case you don't use site name `viethoang.local` in step 1
+ `<publishUrl>` to **your sitecore instance url** in case you don't use site name `cm.viethoang.local` in step 1
1. rename **Common.LocalSettings.config.example** to **Common.LocalSettings.config** and then update the following one:
+ `VietHoangSourceFolder` to **your solution directory** (Ex: "D:\\my-simple-framework")
1. Enable URL Rewrite
......@@ -79,10 +82,9 @@ The following applications/tools/utilities are required on your local machine. T
+ launch PowerShell as an administrator
+ change directory to **your solution folder**
+ execute **.\build**
## Test Your Local Environment
+ open a browser, navigate to `hoavi.viethoang.local/` and you should see the homepage without any errors
+ open a browser, navigate to `demo.viethoang.local/` and you should see the homepage without any errors
1. test your local development environment: open a browser, navigate to the following URLs and then you should see them without any errors:
+ [http://hoavi.viethoang.local/](http://hoavi.viethoang.local/)
+ [http://demo.viethoang.local/](http://demo.viethoang.local/)
## Create Deployment Folder
We can perform the build and deloy of a specific environment on the local by following these steps:
......
{
"WebsiteRoot": "C:\\inetpub\\wwwroot\\viethoang.local",
"WebsiteRoot": "D:\\my-simple-framework\\Docker\\deploy\\website",
"XConnectRoot": "C:\\inetpub\\wwwroot\\viethoang.xconnect.local",
"InstanceUrl": "https://cm.viethoang.local/",
"SolutionName": "VietHoang.Sitecore.sln",
......
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<publishUrl>https://cm.viethoang.local</publishUrl>
<publishUrl>D:\my-simple-framework\Docker\deploy\website</publishUrl>
<ExcludeFilesFromDeployment>Views\web.config</ExcludeFilesFromDeployment>
<ExcludeFilesFromDeployment>packages.config</ExcludeFilesFromDeployment>
<ExcludeFilesFromDeployment>web.config</ExcludeFilesFromDeployment>
......
......@@ -8,7 +8,7 @@
var target = Argument<string>("Target", "Default");
var configuration = new Configuration();
var cakeConsole = new CakeConsole();
var cakeConsole = new CakeConsole(Context.Environment);
var configJsonFile = $"../../cake-config.json";
var unicornSyncScript = $"../Unicorn/Sync.ps1";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment