November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Hi Glen,
It would probably be worth taking a look at this article from Jon Jones:
Probably everyone would agree that over the years the documentation has became more concise and less beginner friendly. There must be a sweet spot between describing every required step to setup the environment and showing just the essence of it, assuming that the developer has already prior knowledge, but I am not sure where that sweet spot lies.
I recorded this a while ago, https://www.youtube.com/watch?v=U0zWMnfW-Hk
Development environments are a matter of taste, usually I develop in Linux, so my taste include setting up SqlServer in docker which I always advice people to do. Never ever install SqlServer locally for development regardless of your OS.
The hosting part doesn't really matter, sometimes I use the dotnet run/watch, sometimes NGINX, and occasionally IIS. If you have a working project that you can run using the dotnet run command create a web.config file if it doesn't exist and go wild with IIS.
It should look like this
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\alloy.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess">
<environmentVariables>
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
</environmentVariables>
</aspNetCore>
</system.webServer>
</location>
</configuration>
Replace alloy.dll with your project main dll-file and add or remove any environment varialbles that are suitable for you. The base path of IIS should be pointed to the bin\Debug\net8.0 folder in your project.
So, while hosting in IIS is quite simple and effective, maybe I should do a video about that as well.
Hello Glen,
using IIS introduces some complexity. The combo .net core (cms 12), kestrel and local db can give you a very smooth local development setup.
It enables us to clone the repo, set some basic config (like find index) and just start the app.
In our company we're now experimenting with DevContainers to make it even more smoother.
Would it be possible to share the reasons you need to use IIS? Maybe it can bring new ideas, suggestions...
Thanks!
Hello,
I apologize in advance if this comes across as a rant.
I don't understand why it's so difficult to put together a clear and concise installation guide.
I would like to set up a development environment on my laptop using IIS (full IIS, not IIS Express). I have been looking for a guide but so far I haven't found one.
Is there a guide that explains (step-by-step) how to get CMS 12 running on a developer's machine using IIS and SQL Server 2022 Developer edition?
My opinion - a development environment should include the tools (Visual Studio, IIS, SQL Server) as well as sample code (either Alloy, or Foundation, or Mosey). After I spend the time building my 'development environment' I'd like to be able to launch the site, login to the back-end, open the code in Visual Studio, experiment with things (create a new block, create a new page, create a new scheduled job).
If such a thing already exists then I apologize for the rant and I would appreciate (very much) if someone could provide a link to it.
If it does not... why not?
Thank you all! Have a great weekend!
Glen Fergo