Deploy script (#276)

Reviewed-on: www/www-new#276
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
fix-md-font
Aditya Thakral 1 year ago
parent 64b9ae9623
commit 690fb8b566
  1. 25
      deploy.sh

@ -0,0 +1,25 @@
#!/usr/bin/env bash
set -ex
cd $(mktemp --directory)
git clone https://git.csclub.uwaterloo.ca/www/www-new.git
cd www-new
npm install
npm run build
npm run export
pushd out
chgrp -R www .
chmod -R g+w .
popd
shopt -s dotglob
rm -rf /srv/www-csc/*
mv out/* /srv/www-csc/
Loading…
Cancel
Save