- SSH into the server
cd ~/nusmods/www
git pull
yarn && npm run build
- Check on https://staging.nusmods.com
- If all is good,
npm run promote-staging
- Files in
~/nusmods/www/dist
will be copied to~/nusmods.com
Config located in /etc/nginx/sites-enabled
. After editing a file with sudo vim <file>
, you will have to restart the nginx server with:
sudo service nginx reload
https://nusmods.com -> ~/nusmods.com
http://staging.nusmods.com -> ~/nusmods/www/dist
http://v2.nusmods.com -> ~/v2.nusmods.com