Skip to content

Instantly share code, notes, and snippets.

@yangshun yangshun/
Last active Dec 28, 2017

What would you like to do?



  1. SSH into the server
  2. cd ~/nusmods/www
  3. git pull
  4. yarn && npm run build
  5. Check on
  6. If all is good, npm run promote-staging
  7. Files in ~/nusmods/www/dist will be copied to ~/


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

URL -> Deployment Dir -> ~/ -> ~/nusmods/www/dist -> ~/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.