Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I have a MERN app, and the React app and Express app are both deployed together (using cyclic.io). You can see the repo here, if you want to see how I set up my folder structure. Basically, the root of the folder is a Node project--the Express app. In a sub-folder i've installed a second Node project--the React app. Then the main Express file needs some lines to tell it to properly server the React app to certain routes.
https://systemd.io/ play with systemd and understand how to start, stop, look at logs of processes. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/chap-managing_services_with_systemd
If it’s not something simple and needs to be a separate project altogether: I’ve found that Express works very well with Dokku. It has pretty comprehensive documentation and doesn’t require you to have a full understanding of Docker to work. It also handles the zero-downtime deployment side of things and gracefully restarts your app every time it crashes (similar to PM2).
Related posts
- Ubuntu 24.04 (and Debian) removed libsystemd from SSH server dependencies
- Systemd minimizing required dependencies for libsystemd
- Going in circles without a real-time clock
- Excellent succinct breakdown of the xz mess, from an OpenBSD developer
- What we know about the xz Utils backdoor that almost infected the world