From 426ac19c1192735da7344bdcfa72ba137570b551 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Sat, 22 Sep 2018 11:48:19 -0300 Subject: [PATCH] -mAdding a script to deployFrom Git using my KeyChain data --- SSH/deployFromGit.ssh | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 SSH/deployFromGit.ssh diff --git a/SSH/deployFromGit.ssh b/SSH/deployFromGit.ssh new file mode 100755 index 0000000..14c32c2 --- /dev/null +++ b/SSH/deployFromGit.ssh @@ -0,0 +1,2 @@ +#!/bin/sh +ssh -A -p 2222 username@MY_IP_ADDRESS -t "cd myApplicationFolder; git fetch --all; git checkout --force production; git pull origin production --force"