Reviewed-on: #279 Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca> Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
This commit is contained in:
parent
690fb8b566
commit
7960d71afe
|
@ -19,3 +19,8 @@ How to upgrade npm: `npm i -g npm`
|
|||
- `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)
|
||||
|
||||
# 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`)
|
||||
|
|
|
@ -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)**_
|
18
deploy.sh
18
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
|
|
@ -0,0 +1,10 @@
|
|||
import Head from "next/head";
|
||||
import React from "react";
|
||||
|
||||
export default function GetStartedRedirect() {
|
||||
return (
|
||||
<Head>
|
||||
<meta httpEquiv="refresh" content="0;url=/get-involved" />
|
||||
</Head>
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue