Coravel responding differently to a published app over dotnet run #309
-
I have a worker app that performs some notifications and checks for my webapp. When I run the app using This is on .NET 6. here is the snippet from
I feel like I'm going crazy. I've never had an app like this respond differently after being published. I'm sure I'm missing something simple. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
This looks okay at a glance... I've done this successfully and I know others have. Might be something missing in the publishing process? It's a bit involved -> https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/windows-service?view=aspnetcore-6.0&tabs=visual-studio&viewFallbackFrom=aspnetcore-3.0#app-configuration Let me know if you still need help 👍 |
Beta Was this translation helpful? Give feedback.
-
I was able to resolve this. I can now run it on linux and windows, and start it at a service. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Great! Glad to hear things are working 🙂 |
Beta Was this translation helpful? Give feedback.
I was able to resolve this.
I had a configuration issue with how I read in my environment variables. This caused the app to silently hang once a task was launched. I didn't notice because I was getting my user secrets in development, and the logging env. variables were loading properly.
I can now run it on linux and windows, and start it at a service.
Thanks!