Author: nanbean
결혼 13주년
How to use localtunnel in PM2
$ vi pm2-lt.yaml
apps:
- name : 'localtunnel'
script: 'lt'
args: '-p <port> -s <subdomain>'
instances: '1'
autorestart: true
max_restarts: 10
max_memory_restart: '500M'
watch : false
error_file: 'err-prod.log'
out_file: 'out-prod.log'
log_file: 'combined-prod.log'
// replace <port>, <subdomain> as you want
$ pm2 start pm2-lt.yaml
$ pm2 save