The Tech Squares website (https://www.mit.edu/~tech-squares/) need to be periodically updated with information about the first day of fall and spring classes (done by the class coordinator and/or webmaster) and with dance locations (done by the rooming coordinator). Updating the website involves the following steps:

  1. SSH to Athena at athena.dialup.mit.edu (ask another officer if you need help with this).
  2. Navigate to the directory where you want to make the changes.
    1. For first day of class: cd /mit/tech-squares/www
    2. For rooming: cd /mit/tech-squares/www/schedules
  3. Open the file you want to change
    1. For first day of class: variables.html
    2. For rooming: weekly.html and weekly-xx.html (replace xx with the last two digits of the relevant year)
  4. Track down the information you need and update the file(s)
    1. For the first day of class:
      1. Get the date from https://docs.google.com/spreadsheets/d/1nsYvSJTXEKkXt9F0t8b68aYTxVRacm2z54mkcbZxwiQ/edit?usp=sharing
      2. Get the room from https://cac-ems2.mit.edu/EmsWebApp using the password from Passwords#EMS(CACroombookings)
    2. For rooming: 
      1. Get the rooms from https://cac-ems2.mit.edu/EmsWebApp using the password from Passwords#EMS(CACroombookings)
  5. Preview at http://www.mit.edu/~tech-squares/schedules/weekly.html
    1. Pages are cached (I believe for 15 minutes), so add ?asdf or something to the URL each time you want to look at it again, making sure to use a unique query string.
  6. Commit and push your changes (pushing requires you to have an ssh key)
    1. To learn more about git, see https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html (or Google)


  • No labels