Skip to content

Instantly share code, notes, and snippets.

View FTKhanFT's full-sized avatar
🌏
Working for the community

Tanvir Ahmed Khan FTKhanFT

🌏
Working for the community
View GitHub Profile
@FTKhanFT
FTKhanFT / deploy.sh
Last active January 26, 2025 18:14
Deploy NodeJs/TS/Any Js framework app in ubuntu using pm2. Also supports Prisma ORM. Uses git url or project directory. Uses ecosystem.config.js file in the project directory to handle the pm2 management.
#!/bin/bash
# Author: Tanvir Ahmed Khan
# License: MIT License
# Github: https://github.com/ftkhanft
# Website: https://rrad.ltd
# Before running this make sure you have the ecosystem.config.js file in your project directory you cloned or in the git repo that you want to deploy. Referance file added below this script.
# Use the setup script added below this script or directly run in terminal:
# curl -s -L https://gist.githubusercontent.com/FTKhanFT/b87ef1bcfff51814b45815ad708fdcc1/raw/4f47ef626f2865b601cb81d628e4c89f04db1604/setup_script.sh | bash