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

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다