I have created a webserver using the Echo router. It act as a REST endpoint. I tried to deploy it in an Ubuntu server using systemd
. The requests are getting out of memory when I try to run it as a service. However it is working fine when I run it in terminal What could be the issue.
my service file
[Unit]
Description=myapp
[Service]
Type=simple
User=root
Environment=ENV=PRODUCTION
ExecStart=/var/www/myapp/public_html/my.app
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target