Unitech / pm2-deploy

Deploy part of PM2
http://pm2.keymetrics.io/docs/usage/deployment/
MIT License
178 stars 71 forks source link

repo - port is ignored #142

Closed adekbadek closed 7 years ago

adekbadek commented 7 years ago

My gitlab instance handles SSH on port 2200, so in my config the repo key is:

"repo": "git@gitlab.somewhere.com:2200/path/to/repo.git",

but pm2 tries to connect via port 22, so I get:

ssh: connect to host gitlab.somewhere.com port 22: Connection refused

is there any way to specify a port for repository?

adekbadek commented 7 years ago

got it working by specifying the protocol:

"repo": "ssh://git@gitlab.somewhere.com:2200/path/to/repo.git",

not sure if it's my lack of understanding or a real issue, so I'll close it.