Designed and developed by our amazing developers in the Tech team :)
-
Clone the repo locally in your computer
git clone [email protected]:UTSC-FinTech-Society/official-website.git
-
Navigate to the official website repo
cd official-website
-
Install all the necessary dependencies with npm
npm install --legacy-peer-deps
-
Run the website locally and get to see all the amazing contents
npm start
-
SSH into the remote DigitalOcean server (Note: ask VP of Tech to add your ssh key to DigitalOcean if you haven't do so yet)
-
Navigate to the official website repo and pull the latest main branch with git
cd official-website git pull
-
Install all the necessary dependencies with npm
npm install --legacy-peer-deps
-
Build our production project
npm run build
In case it pops up an error showing heap space is exceeded, run the below command before building project
export NODE_OPTIONS="--max-old-space-size=8192"
-
Replace the contents of the folder /var/www/html with the contents of the build folder
cp -a build/. /var/www/html/