Click here to Skip to main content
15,887,175 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Silly news headline OTD Pin
Choroid27-Jul-22 7:37
Choroid27-Jul-22 7:37 
GeneralHost Web API Pin
Kevin Marois26-Jul-22 13:58
professionalKevin Marois26-Jul-22 13:58 
GeneralRe: Host Web API Pin
Southmountain26-Jul-22 16:45
Southmountain26-Jul-22 16:45 
GeneralRe: Host Web API Pin
Andreas Mertens26-Jul-22 16:50
professionalAndreas Mertens26-Jul-22 16:50 
GeneralRe: Host Web API Pin
RickZeeland26-Jul-22 19:10
mveRickZeeland26-Jul-22 19:10 
GeneralRe: Host Web API Pin
MikeCO1028-Jul-22 3:19
MikeCO1028-Jul-22 3:19 
GeneralRe: Host Web API Pin
markkuk26-Jul-22 21:05
markkuk26-Jul-22 21:05 
GeneralRe: Host Web API Pin
pkfox26-Jul-22 22:01
professionalpkfox26-Jul-22 22:01 
Host it yourself ! I do this a lot using Net 6 - I have a SBC on my LAN running Linux with a database(postgres) the dotnet sdk and runtimes installed, publish your API to a folder in /var/www/ (can be anywhere) , create a systemd service file and put it in /etc/systemd/system folder (so you can control it) - job done. To start it - systemctl start myapi.service, if you want it started at boot time - systemctl enable myapi.service
Sample service file
[Unit]
Description=Pete Kane Commands API net core<br />
StartLimitIntervalSec=0

[Service]
ExecStart=/usr/bin/dotnet /var/www/CommandsAPI/CommandsAPI.dll
WorkingDirectory=         /var/www/CommandsAPI/
User=pjk
Group=pjk
Restart=on-failure
SyslogIdentifier=Commands-API
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP


modified 27-Jul-22 4:12am.

PraiseRe: Host Web API Pin
NPowDev28-Jul-22 0:07
NPowDev28-Jul-22 0:07 
GeneralRe: Host Web API Pin
DerekT-P27-Jul-22 9:37
professionalDerekT-P27-Jul-22 9:37 
GeneralRe: Host Web API Pin
peterkmx27-Jul-22 14:02
professionalpeterkmx27-Jul-22 14:02 
GeneralRe: Host Web API Pin
maze327-Jul-22 22:41
professionalmaze327-Jul-22 22:41 
GeneralRe: Host Web API Pin
Vaso Elias28-Jul-22 1:13
Vaso Elias28-Jul-22 1:13 
GeneralRe: Host Web API Pin
Peter Shaw28-Jul-22 2:36
professionalPeter Shaw28-Jul-22 2:36 
GeneralRe: Host Web API Pin
pkfox28-Jul-22 3:47
professionalpkfox28-Jul-22 3:47 
GeneralRe: Host Web API Pin
Peter Shaw28-Jul-22 4:41
professionalPeter Shaw28-Jul-22 4:41 
GeneralRe: Host Web API Pin
pkfox28-Jul-22 10:18
professionalpkfox28-Jul-22 10:18 
GeneralRe: Host Web API Pin
Peter Shaw29-Jul-22 6:52
professionalPeter Shaw29-Jul-22 6:52 
GeneralRe: Host Web API Pin
L. Braun28-Jul-22 3:58
L. Braun28-Jul-22 3:58 
GeneralRe: Host Web API Pin
MikeCO1028-Jul-22 3:09
MikeCO1028-Jul-22 3:09 
GeneralRe: Host Web API Pin
Joss45128-Jul-22 6:00
Joss45128-Jul-22 6:00 
RantAnother MS perplexion (actually, more) Pin
David O'Neil26-Jul-22 13:23
professionalDavid O'Neil26-Jul-22 13:23 
GeneralRe: Another MS perplexion (actually, more) Pin
Andreas Mertens26-Jul-22 16:54
professionalAndreas Mertens26-Jul-22 16:54 
GeneralRe: Another MS perplexion (actually, more) Pin
OriginalGriff26-Jul-22 20:00
mveOriginalGriff26-Jul-22 20:00 
GeneralRe: Another MS perplexion (actually, more) Pin
David O'Neil26-Jul-22 20:26
professionalDavid O'Neil26-Jul-22 20:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.