Load the fully compiled configuration for a Sitecore server without Sitecore! Configuration issues can cause Sitecore to fail to startup. The normal process of reviewing your configuration via /sitecore/admin/showconfig.aspx
does not work if Sitecore is not running. This can make troubleshooting config issues difficult.
Enter the Standalone ShowConfig. This app will compile the showconfig without running any of the initialization processes, thus allowing you to see what Sitecore is working with.
Read this to determine the process: https://www.xcentium.com/blog/2018/02/25/standalone-sitecore-showconfig
- Checkout the code
- Setup an IIS website targeting the
{repoRoot}/SitecoreShowConfigStandalone
folder - Drop your App_Config files into the website root
- Navigate to the
/showconfig.aspx
of your site
NOTE: This assumes you have Docker for Windows running. Check out Rob's post to get set up
- Checkout the code
- Copy/rename the
.env.example
-->.env
- Update
WINDOWSSERVERCORE_VERSION
in the.env
(if necessary) - Drop your App_Config files into the
/docker/src
folder - Run
docker-compose up -d
- Navigate to http://standalone.dev.local/showconfig.aspx
docker pull bic74287/sitecore-standalone-showconfig:10.2.0-20H2
docker run -d -p 80:80 --volume=path/to/app_config:C:\inetpub\wwwroot\app_config bic74287/sitecore-standalone-showconfig:10.2.0-20H2
NOTE: You still have to mount an App_Config folder
By default, the page will examine the app settings in your web.config
file to determine the rules to apply. You can override the rules in the web.config by using the query string:
`/showconfig.aspx?role=ContentDelivery&search=solr`
If you're using Docker, then you can specify the values as environment variables in your compose:
environment:
SITECORE_APPSETTINGS_SEARCH:DEFINE: "Azure"