Using AWS Lightsail to host App Server - How to stop server from timing out

Apologies in advance for the slightly embarassing question! I successfully deployed my App to an AWS Lightsail instance, without any issue, following the great instructions. I leave the instance running, however after a period of time, approximately 5-10mins, it seems to timeout, if there has been no activity on the site.

I’m guessing I’m doing something simple incorrectly? Is there a setting by which the server needs to continue, even if no activity detected?

I did something very hacking to get it working. I run it with immortalctl and it outputs logs to a file.

The proper way is to user your systems service tool like systemd. But I’ve never been good at that and never figured out how to make it work.

Anyone else?

1 Like

I don’t know the answer but I remember reading this last month, and I think they figured it out? :

1 Like