Skip to content

Commit 8781ba6

Browse files
committed
Merge branch 'master' into development
2 parents 6dcd533 + 2b342fe commit 8781ba6

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

ADVANCED_README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,21 @@ $ pm2 startOrReload all.json # Invoke reload
10581058
$ pm2 startOrGracefulReload all.json # Invoke gracefulReload
10591059
```
10601060
1061+
## Using file key for authenticating
1062+
1063+
Just add the "key" attribute with file path to the .pem key within the attributes "user", "hosts"...
1064+
1065+
```
1066+
"production" : {
1067+
"key" : "/path/to/some.pem",
1068+
"user" : "node",
1069+
"host" : "212.83.163.1",
1070+
"ref" : "origin/master",
1071+
"repo" : "git@github.com:repo.git",
1072+
"path" : "/var/www/production",
1073+
"post-deploy" : "pm2 startOrRestart ecosystem.json --env production"
1074+
},
1075+
```
10611076
<a name="considerations"/>
10621077
## Considerations
10631078

0 commit comments

Comments
 (0)