6 ms·
Sticking to cloud services that abstract a lot of this away can really help. If you aren’t deploying for “scale” then using managed services is the key. Not sur
by iamflimflam1 3y ago
Sticking to cloud services that abstract a lot of this away can really help. If you aren’t deploying for “scale” then using managed services is the key. Not sure what the equivalent of heroku is nowadays, but they can remove a whole bunch of headaches.
I’ve also been pretty impressed with the serverless framework - particularly when used as a wrapper round traditional frameworks like flask or express.
- z3t4 3y agoI think I've gone through 4 different init systems, and SystemD is fairly easy to get a daemon running. Here's an example config: # sudo useradd -r -s /bin/false userofservice # sudo cp thisfile.systemd /etc/systemd/system/nameofservice.service # sudo systemctl enable nameofservice || sudo systemctl daemon-reload # sudo systemctl start nameofservice [Unit] Description=What the service dose Wants=network-online.target After=syslog.target network.target network-online.target [Service] User=userofservice Group=userofservice WorkingDirectory=/srv/nameofservice/ ExecStart=/usr/bin/runtime somescript.xyz ExecStopPost=+/srv/crashreport/report.xyz %n Restart=always [Install] WantedBy=multi-user.target