deploy.sh 303 B

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