Setup and run DEVHINTS.IO cheatsheets on localhost

This is a static website based on Jekyll framework https://jekyllrb.com/. Need install Jekyll and .

Login as user “root” due to write permission required into /Library/Ruby/Gems directory. Install bundler and Jekyll at first:

1
igloo:cheatsheets root# gem install bundler jekyll

Then install all this application dependent libraries:

1
igloo:cheatsheets root# bundler install

Start up Jekyll website on localhost, with user “terrence” this time:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
terrence@igloo ~/Projects/cheatsheets (master ☡=)
17:28:56 𝜆 bundle exec jekyll serve --incremental
Configuration file: /Users/terrence/Projects/cheatsheets/_config.yml
Source: /Users/terrence/Projects/cheatsheets
Destination: /Users/terrence/Projects/cheatsheets/_site
Incremental build: enabled
Generating...
DEPRECATION WARNING on line 83, column 12 of /Users/terrence/Projects/cheatsheets/_sass/vendor/modularscale/_modularscale.scss:
Unescaped multiline strings are deprecated and will be removed in a future version of Sass.
To include a newline in a string, use "\a" or "\a " as in CSS.

done in 3.163 seconds.
Auto-regeneration: enabled for '/Users/terrence/Projects/cheatsheets'
Server address: http://127.0.0.1:4000
Server running... press ctrl-c to stop.

Go to URL: http://127.0.0.1:4000 start searching and using cheatsheets in localhost environment:

DEVHINTS.IO - cheatsheets

DEVHINTS.IO - cheatsheets

To generate static web content ONLY:

1
2
3
4
5
6
7
8
9
10
11
12
13
terrence@igloo ~/Projects/cheatsheets (master ☡=)
17:28:56 𝜆 bundle exec jekyll build
Configuration file: /Users/terrence/Projects/cheatsheets/_config.yml
Source: /Users/terrence/Projects/cheatsheets
Destination: ../terrencemiao.github.io/cheatsheets
Incremental build: disabled. Enable with --incremental
Generating...
DEPRECATION WARNING on line 83, column 12 of /Users/terrence/Projects/cheatsheets/_sass/vendor/modularscale/_modularscale.scss:
Unescaped multiline strings are deprecated and will be removed in a future version of Sass.
To include a newline in a string, use "\a" or "\a " as in CSS.

done in 43.269 seconds.
Auto-regeneration: disabled. Use --watch to enable.

Then can upload published website content from ../terrencemiao.github.io/cheatsheets directory to https://terrencemiao.github.io.

Contents