瀏覽代碼

Merge branch 'staging' of https://git.o-for.net/marx/alucho into staging

Danilo Gómez Gómez 4 年之前
父節點
當前提交
6dc4328923
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      deploy.sh

+ 5 - 0
deploy.sh

@@ -0,0 +1,5 @@
+#!/bin/bash
+python3 sitegen.py || { echo 'fail_generating_the_site'; exit 1; }
+sudo rm -r /var/www/alucho || { echo 'fail_deleting_target_folder'; exit 2; }
+sudo cp -r build /var/www/alucho || { echo 'fail_copying_site'; exit 3; }
+sudo service caddy restart || { echo 'fail_restarting_caddy'; exit 4; }