~evanj/cms

6c927cd2ff4089094918a4a75a026b6591876188 — Evan J 2 months ago f2ad888
Fix(.build.yml): Port in SCP was set incorrectly (used -p instead of the
correct -P).
1 files changed, 4 insertions(+), 4 deletions(-)

M .build.yml
M .build.yml => .build.yml +4 -4
@@ 16,15 16,15 @@ tasks:
        echo "deploying to production"
        ssh -p 4545 -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "sudo mysqldump cms > \$(mktemp --suffix .cms.datbase.backup.sql)"'
        ssh -p 4545 -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "rm ~/cms/cms 2>/dev/null"'
        scp -p 4545 -o 'StrictHostKeyChecking=no' cms evan@140.82.14.80:~/cms
        scp -p 4545 -r -o 'StrictHostKeyChecking=no' static evan@140.82.14.80:~/cms
        scp -P 4545 -o 'StrictHostKeyChecking=no' cms evan@140.82.14.80:~/cms
        scp -P 4545 -r -o 'StrictHostKeyChecking=no' static evan@140.82.14.80:~/cms
        ssh -p 4545 -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "sudo systemctl restart cms"'
      elif [ `git branch | head -n 1 | awk '{print$5}' | sed 's/)//g' | xargs -I X bash -c "git log --pretty=oneline origin/tip | head -n 1 | grep X" | wc -l` == "1" ]; then
        echo "deploying to tip"
        ssh -p 4545 -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "sudo mysqldump cms_tip > \$(mktemp --suffix .cms.tip.datbase.backup.sql)"'
        ssh -p 4545 -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "rm ~/cms.tip/cms 2>/dev/null"'
        scp -p 4545 -o 'StrictHostKeyChecking=no' cms evan@140.82.14.80:~/cms.tip
        scp -p 4545 -r -o 'StrictHostKeyChecking=no' static evan@140.82.14.80:~/cms.tip
        scp -P 4545 -o 'StrictHostKeyChecking=no' cms evan@140.82.14.80:~/cms.tip
        scp -P 4545 -r -o 'StrictHostKeyChecking=no' static evan@140.82.14.80:~/cms.tip
        ssh -p 4545 -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "sudo systemctl restart cms.tip"'
      else 
        echo "not deploying"