DevBetterCom / DevBetterWeb

A simple web application for devBetter
https://devbetter.com/
137 stars 56 forks source link

Enabling Local Development on Macs with Apple Silicon (arm64) 🍏 #1274

Open david-acm opened 3 months ago

david-acm commented 3 months ago

Fixes #1273

KamRon-67 commented 3 months ago

Was able to get everything up and running no problem.

image
david-acm commented 3 months ago

Let me add some instructions to the README before this goes to main.

david-acm commented 3 months ago

@KyleMcMaster I removed the 'Local' appsettings file and environment in this commit in favor of a docker environment variable. So, now the app behaves differently only if the 'DOTNET_RUNNING_IN_CONTAINER' env variable is set to true, which is set by either the IDE or the dotnet runtime (not sure which), no need to set it manually.

If that variable is set to true and the environment to 'Development' the app runs the DB migrations. You can also check this proposed workflow in the Run with docker section in the README.md

david-acm commented 3 months ago

@KyleMcMaster @ardalis. This PR has been open for a while, I believe it has no pending issues. Should we run workflows and merge it?

ardalis commented 2 months ago

@KyleMcMaster when you get a chance can you confirm this is good to 🚢 ?

KyleMcMaster commented 2 months ago

@KyleMcMaster when you get a chance can you confirm this is good to 🚢 ?

Looks fine to me, I was just casually reviewing. I say :shipit:!