Run jekyll as service

hello all
i want to publish my new site with jekyll
i have a vps and jekyll installed on it and everythig is ok wehe i just run:
jekyll serve
but when i closed my ssh consle, the server becomes down.

so i want to run jekyll as service. and need help

jekyll isn’t meant to be ran like that in production - the built in web server is just to make doing development easier.

Is there a reason you don’t want to use an actual web server? there are lots of free ones out there. I would think your vps has one built in that you would just upload your _site folder to.

I find it a lot easier to host via AWS Amplify or one of the other services that builds the site on any commit and then serves it for you for more or less free.

If you really want to use jekyll as the web server if you search the forum I think you find some people who have done it / tried to do it but it is not a great idea.