WTFTW — What the Fact this Week
What The Fact This Week!
My Breaking Code journey
So.. I have a prowess in breaking things. I mean it. Often times I’ve introduced system administrators, tech leads, DBAs to errors that they have had to dig through resources to solve! I decided to document my ‘breaking code’ journey by helping myself and others through resources that helped!
- Installing jekyll on MAC — Should have been straightforward but not in my case, obviously. Turns out rvm is not recommended but actually REQUIRED to go through this and not lose your mind. Following is what I did. Install rvm:
$ \curl -sSL https://get.rvm.io | bash -s stable
If the install went fine, then run `rvm` command, if it returns a
-bash: rvm: command not found
it could be because the terminal does not rvm shell configuration loaded. Try following from your terminal:
$ source ~/.rvm/scripts/rvm
$ type rvm | head -n 1
If the output is:
rvm is a function
You may need to add “source ~/.rvm/scripts/rvm” to your ~/.bash_profile file. Now once you have rvm set, you can proceed with installing jekyll.
$ gem install jekyll
Now run `jekyll` command, it should return a brief usage guide. This guarantees that you now have `jekyll` installed successfully. To create a new Jekyll site scaffold in PATH run
$ jekyll new my-jekyll-site
To be able to serve your site locally, first navigate to the new created directory and run the serve command
$ cd my-jekyll-site/
$ jekyll serve
This should print details of your configuration file location and serve your jekyll site, you can access it from the server address that gets displayed on your terminal. To exit run Ctrl+C. Bam!