diff --git a/README.md b/README.md index af122ff6..bbd8a43a 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,9 @@ How to upgrade npm: `npm i -g npm` - `npm install` to install project dependencies - `npm run build` to generate html/css/js - `npm run export` to move the built files (along with assets in the public directory) to the `/out` directory -- Use your favourite web server to host the files in the `/out` directory. (A very simple one would be `python -m http.server` - not sure if it should actually be used for production :P) \ No newline at end of file +- Use your favourite web server to host the files in the `/out` directory. (A very simple one would be `python -m http.server` - not sure if it should actually be used for production :P) + +# Deploy + +- `groups` (make sure you're in the `www` group) +- `curl -o- https://git.csclub.uwaterloo.ca/www/www-new/raw/branch/main/deploy.sh | bash` (run on `caffeine`) diff --git a/content/events/2021/spring/new-website.md b/content/events/2021/spring/new-website.md deleted file mode 100644 index fecec6db..00000000 --- a/content/events/2021/spring/new-website.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -name: 'New Website' -short: 'Check out our new website' -date: 'Jun 15 2022 00:00:00 GMT-0400 (Eastern Daylight Time)' -online: true -location: 'Zoom' -poster: 'images/events/2021/spring/new-website.png' ---- - -Hey everyone! 👋 Today we are finally releasing the new website internally. Feedback from yall would be really appreciated to iron out bugs before we release it to the public on Wednesday, September 1!! 🥳 - -Link to the beta version: https://csclub.uwaterloo.ca/~a3thakra/csc/main/ - -## How to give feedback - -- Submit this google form: https://forms.gle/YD6MD726KjKwCd1v6 OR -- Create an issue in our repository https://git.csclub.uwaterloo.ca/www/www-new (use your CSC credentials to sign in) - -_**(This is a dummy event, and will be removed before publishing the website)**_ diff --git a/deploy.sh b/deploy.sh index 7f36c88d..dbb314e3 100755 --- a/deploy.sh +++ b/deploy.sh @@ -2,9 +2,11 @@ set -ex -cd $(mktemp --directory) +DIR=$(mktemp --directory) -git clone https://git.csclub.uwaterloo.ca/www/www-new.git +pushd $DIR + +git clone https://git.csclub.uwaterloo.ca/www/www-new.git --depth=1 cd www-new @@ -12,14 +14,14 @@ npm install npm run build npm run export -pushd out - -chgrp -R www . -chmod -R g+w . - -popd +chgrp -R www out +chmod -R g+w out shopt -s dotglob rm -rf /srv/www-csc/* mv out/* /srv/www-csc/ + +popd + +rm -rf $DIR \ No newline at end of file diff --git a/pages/get-started.tsx b/pages/get-started.tsx new file mode 100644 index 00000000..5031e118 --- /dev/null +++ b/pages/get-started.tsx @@ -0,0 +1,10 @@ +import Head from "next/head"; +import React from "react"; + +export default function GetStartedRedirect() { + return ( + + + + ); +}