Weird Science
All work

QuickLaunch

Deploy a Node.js app to your own server with one CLI.

Year
2024
Type
Dev tools
Platform
Terminal
Status
Live
Built with
TypeScript, Node.js, PM2, Nginx, Let's Encrypt

Over SSH, it uploads your project, installs dependencies, runs it under PM2, then sets up Nginx and a Let's Encrypt certificate. Published on npm as @weirdscience/quicklaunch.

quicklaunch init asks for the server host, SSH user, deploy directory, optional domain, port and app name, and saves them in a .deployrc.json file.

quicklaunch deploy connects over SSH, creates the directory, uploads the files, installs dependencies, starts the app under PM2 and configures Nginx if a domain is set.

quicklaunch ssl installs Certbot if missing, requests a Let's Encrypt certificate and sets up the HTTPS redirect. quicklaunch logs streams the app's logs. The server must already have PM2 and Nginx.