Skip to content

Instantly share code, notes, and snippets.

@ann0see
Created September 2, 2021 09:38
Show Gist options
  • Save ann0see/f738f79fe907487544eb128acf504d4d to your computer and use it in GitHub Desktop.
Save ann0see/f738f79fe907487544eb128acf504d4d to your computer and use it in GitHub Desktop.
View Jamulus website on macOS locally

You can click on the "Fork button" on the jamuluswebsite repo, make some small changes to your repository and open a pull request to jamulussoftware/jamulus. Afterwards the magic happens: GitHub builds the site and uploads the output as .zip file (which you can download at the Checks tab of the PR under Artifacts). If you unpack this zip file and copy it to the correct location on your mac (and enable apache2) you can go to safari, browse to https://localhost and get the website.

To get apache up and running:

  1. Open terminal
  2. Type sudo apachectl start to start the web server
  3. Go into the website root by typing cd /Library/WebServer/Documents
  4. Now copy the content of the zip file (everything under _site) into /Library/WebServer/Documents by typing cp -r /home/gene/Downloads/Website/website/_site/* . while /home/gene/Downloads/Website/website/_site is the path to the _sites folder which you downloaded from the pull request.
  5. Open Safari and browse to http://localhost/ to get the website.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment