-
Notifications
You must be signed in to change notification settings - Fork 4
2. Getting the code onto your system
This is quite simple now that you have Jekyll and the other software installed. Again you will be using Terminal. I generally run my projects from my documents folder in a project called githubProjects (so paste these steps):
cd
cd Documents
mkdir githubProjects
cd githubProjects
You now have your folder ready to get the code to run the site. So paste this command:
git clone https://github.com/FitzwilliamMuseum/egyptiancoffins
This will run and copy the contents to your machine in the folder Documents/githubProjects/egyptiancoffins
Now change into this folder:
cd egyptiancoffins
Several extra bits of software may need to be installed on your mac, so follow these commands:
gem install jekyll-feed
gem install jemoji
gem install jekyll-sitemap
gem install jekyll-seo-tag
gem install jekyll-mentions
This should all install okay, if not again ask @portableant
Now you can get the site running!
Run this command:
jekyll serve
This will run and you will see this window and if it runs you will get a list of things happening and at the bottom two lines to pay attention to:
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
The top line tells you where to access the site on your laptop, so go to http://127.0.0.1:4000/
To stop the server running, you use terminal and in the window you have running, press ctrl and c together and it will take you back to the command line. Simple.