❔ Dotnet production Linux Ubuntu
Hello got a linux remote machine and I'm hosting a dotnet discord bot and a api.
How to launch the process in background with a name ?
dotnet run --project ... &
How to check if they're running well in linux ?
Just now, the bot crashed, so I'm looking with ssh but how to found the error or something ? I got nothing.
Thanks!6 Replies
If you want to test your application. Write tests and run them on linux with WSL (for example)
https://wiki.debian.org/systemd/Services might helps
you need to run a screen
assuming you run debian
sudo apt install screen
then to create a screen screen -S SCREEN_NAME
then to detach the screen
Ctrl+A D
if you want to go back on the screen do screen -r SCREEN_NAME
Oh nice one, didn't know about that, thanks!
So each screen for each process ?
one screen for API
one screen for discord bot ?
Is there anything better ?
Running them as systemd services, but you don’t really need that
Yes
you might want to look into docker
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.