- SSH into the server
cd ~/nusmods/wwwgit pullyarn && npm run build- Check on https://staging.nusmods.com
- If all is good,
npm run promote-staging - Files in
~/nusmods/www/distwill 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