~evanj/e3

b7e169e7716b0b0fbceb9322f3d45e557422a964 — Evan J 1 year, 3 months ago f07259c master
Fix(.build.yml): Remove static dir ref from build file (was copied from
other application).
1 files changed, 0 insertions(+), 2 deletions(-)

M .build.yml
M .build.yml => .build.yml +0 -2
@@ 17,14 17,12 @@ tasks:
        ssh -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "sudo mysqldump e3 > \$(mktemp --suffix .e3.datbase.backup.sql)"'
        ssh -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "rm ~/e3/e3 2>/dev/null"'
        scp -o 'StrictHostKeyChecking=no' e3 evan@140.82.14.80:~/e3
        scp -r -o 'StrictHostKeyChecking=no' static evan@140.82.14.80:~/e3
        ssh -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "sudo systemctl restart e3"'
      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 -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "sudo mysqldump e3_tip > \$(mktemp --suffix .e3.tip.datbase.backup.sql)"'
        ssh -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "rm ~/e3.tip/e3 2>/dev/null"'
        scp -o 'StrictHostKeyChecking=no' e3 evan@140.82.14.80:~/e3.tip
        scp -r -o 'StrictHostKeyChecking=no' static evan@140.82.14.80:~/e3.tip
        ssh -o 'StrictHostKeyChecking=no' evan@140.82.14.80 'bash -c "sudo systemctl restart e3.tip"'
      else 
        echo "not deploying"