C
C#2y ago
ergazia

❔ 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
Halfbax
Halfbax2y ago
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
khamas
khamas2y ago
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
ergazia
ergazia2y ago
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 ?
khamas
khamas2y ago
Running them as systemd services, but you don’t really need that Yes
realivanjxツ
realivanjxツ2y ago
you might want to look into docker
Accord
Accord2y ago
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.
Want results from more Discord servers?
Add your server
More Posts