Generate your deployment command
Your deployment command:
curl -sSL https://raw.githubusercontent.com/desuruproject/desuru/refs/heads/main/desuru.sh | sudo bash -s -- \
--app myapp \
--domain example.com \
--ssl \
--email admin@example.com
Requirements
- Ubuntu server with root access
- Domain pointing to server
- Your app code in project directory
How to deploy
- SSH into your Ubuntu server
- Navigate to your project directory (where package.json is)
- Copy and run the generated command above
- Wait for deployment to complete
- Your app will be live at your domain
What it does
- Detects your framework
- Installs Node.js, PM2, Nginx
- Builds your app
- Sets up SSL
- Configures firewall
- Starts your app
Tech stack
PM2 process manager • Nginx web server • Let's Encrypt SSL • UFW firewall
Manage your app with PM2
After deployment, use these commands to manage your application:
pm2 status
pm2 logs your-app-name
pm2 restart your-app-name
pm2 stop your-app-name
Tested on
Ubuntu with React and Node.js apps
Important commands
tail -50 /tmp/deploy-*.log
sudo systemctl status nginx
sudo systemctl restart nginx