Final changes for deploying (#279)

Reviewed-on: www/www-new#279
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 690fb8b566
commit 7960d71afe
  1. 7
      README.md
  2. 19
      content/events/2021/spring/new-website.md
  3. 18
      deploy.sh
  4. 10
      pages/get-started.tsx

@ -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)
- 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)**_

@ -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…
Cancel
Save