Personal homepage / blog using the Jekyll theme minima.
-
Clone the git repository.
-
Install Jekyll, e.g. on Ubuntu (as superuser)
apt-get updateapt-get upgradeapt-get install ruby-fullgem install jekyll. Checkjekyll --version. If error:gem install bundlerapt-get install zlib1g-devgem install nokogiri -v '1.8.1'bundle installjekyll --version
-
From the project root,
jekyll serve -
Go to
localhost:4000in the browser
-
Install Vagrant with an Ubuntu box and
fsnotify -
Clone the git repository onto the host machine and the guest machine (latter requires
ssh-ing into the Vagrant box). -
Get the Vagrant box's IP address
grep -nrw 'ip' Vagrantfile -
Sync the newly-cloned git repositories on the guest and host machines by adding
config.vm.synced_folder "/path/to/host-machine/repo", "/path/to/guest-machine/repo", fsnotify: truetoVagrantfile. This allows editing source files with your editor of choice on the host machine and for changes to take effect without restarting the server on a page refresh. If your editor of choice is Vim, Nano, etc. you can skip this step 😉 -
Exit
ssh, restart the Vagrant boxvagrant reload --provision <vagrantboxid>and start a new session. -
Install Jekyll. From the project root,
jekyll serve --host=0.0.0.0Go in the browser to<ipaddress>:4000replacing<ipaddress>with the one obtained in the third step. You should see the app load.