How I Publish
June 24, 2024
Ok, so in order to get this published out to my server, I am utilizing simple FTP and some basic command line skills.
- npx tailwindcss -i ./styles/site.css -o ./wwwroot/css/site.css --minify (for publishing out the css - which yes, I know, it is seriously lacking there)
- dotnet publish -r win-x86 -o ./publish --self-contained (for publishing out the site - still want to figure out how to publish this out trimmed, but ran into an issue where not everything seemed to get published out when I did that - things to look into)
For local development, since I'm developing completely on a mac
- Open the solution with Rider
- dotnet watch run -lp https (works well with hot reload)
- npx tailwindcss -i ./styles/site.css -o ./wwwroot/css/site.css --watch (for the styling elements)
- docker run --rm --cap-add SYS_PTRACE -e 'ACCEPT_EULA=1' -e 'MSSQL_SA_PASSWORD=P@ssword1!' -p 1433:1433 --name azuresqledge -d mcr.microsoft.com/azure-sql-edge (for my arm based sql server instance)
The code also lives up on github in a public repo so anyone is able to take a look at it. Since this is just a little side project for myself as I explore with Blazor Web Apps, I probably won't take any PR's or feature requests, but feel free to fork it, completely copy it, or do anything else you would like with it. My goal is to eventually add comments, image management, more styling (obviously), etc to make it a more built out engine.