Last active
July 23, 2021 08:42
-
-
Save pauiglesias/9dd417817ffc628ab1921d80a393b8c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# No passphrase (!important), save as [name]_ed25519 | |
ssh-keygen -t ed25519 | |
# File ~/.ssh/config | |
Hostname gitlab.com | |
PreferredAuthentications publickey | |
IdentityFile ~/.ssh/[filename] | |
User [username] | |
# Add to known hosts | |
ssh -T git@deployment | |
# pm2 ecosystem.config.js | |
deploy : { | |
production : { | |
user : "[username", | |
host : ["ip"], | |
ref : "origin/[master|main]", | |
repo : "git@deployment:[group]/[repo].git", | |
path : "/var/www/[group]/[repo]/[repo-v1]", | |
"post-deploy" : "npm install" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment