pm2 typescript 1

pm2 typescript

## Add the new typescript dependency in PM2:
pm2 install typescript

## Start app.ts in watch & restart:
pm2 start app.ts --watch

Here is what the above code is Doing:
1. Install the typescript dependency in PM2
2. Start app.ts in watch & restart mode

Now, if you make any changes to app.ts, PM2 will automatically restart the app.

## Deploying to Production

### Install PM2

“`
npm install pm2 -g
“`

### Start the app

“`
pm2 start app.ts
“`

### Save the current process list

“`
pm2 save
“`

### Stop the app

“`
pm2 stop app
“`

### Restart the app

“`
pm2 restart app
“`

### Delete the app

“`
pm2 delete app
“`

### List all apps

“`
pm2 list
“`

### Monitor all apps

“`
pm2 monit
“`

### Show logs

“`
pm2 logs
“`

### Show help

“`
pm2 –help
“`

### Show help for a command

“`
pm2 –help
“`

### Show all commands

“`
pm2 -h
“`

### Show all commands for a command

“`
pm2 -h
“`

### Show version

“`
pm2 -v
“`

### Show version for a command

“`
pm2 -v
“`

### Show PM2 version

“`
pm2 -V
“`

### Show PM2 version for a command

“`
pm2 -V
“`

### Show PM2 version

“`
pm2 –version
“`

### Show PM2 version for a command

“`
pm2 –version
“`

### Show PM2 version

“`
pm2 -V
“`

### Show PM2 version for a command

“`
pm2 -V
“`

### Show PM2 version

“`
pm2 –version
“`

### Show PM2 version for a command

“`
pm2 –version
“`

### Show PM2 version

“`
pm2 -V
“`

### Show PM2 version for a command

“`
pm2 -V
“`

### Show PM2 version

“`
pm2 –version
“`

### Show PM2 version for a command

“`
pm2 –version
“`

### Show PM2 version

“`
pm2 -V
“`

### Show PM2 version for a command

“`
pm2 -V
“`

### Show PM2 version

“`
pm2 –version
“`

### Show PM2 version for a command

“`
pm2 –version
“`

### Show PM2 version

“`
pm2 -V
“`

### Show PM2 version for a command

“`
pm2 -V
“`

### Show PM2 version

“`
pm2 –version
“`

### Show PM2 version for a command

“`
pm2 –version
“`

### Show PM2 version

“`
pm2 -V
“`

Similar Posts