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

댓글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다