The best way to deploy Jekyll powered website on github.
- Create a development repository with the following config files: _config.yml: url: 'http://nghin.github.io/vacsf.org.dev' urlimg: 'http://nghin.github.io/vacsf.org.dev/images/' _config_site.yml: url: 'http://vacsf.org' urlimg: 'http://vacsf.org/images/' _config_nitrous.yml: url: 'http://jekyll-142416.nitrousapp.com:4000' urlimg: 'http://0.0.0.0:4000/images/'
- Development build: just build: jekyll build --config _config.yml,_config_dev.yml build and serve: jekyll serve --host 127.0.0.1 --drafts --incremental --config _config.yml,_config_dev.yml & or on nitrous: just build: jekyll build --config _config.yml,_config_nitrous.yml or build and serve: jekyll serve --host 0.0.0.0 --incremental --config _config.yml,_config_nitrous.yml &
- Deployment build: jekyll build --config _config.yml,_config_site.yml
- Copy compiled files: rsync -avzh /home/nghi/Documents/Jekyll/vacsf.org.dev/_site/* /home/nghi/Documents/Jekyll/vacsf.org/ or on nitrous: rsync -avzh /home/nitrous/code/vacsf.org.dev/_site/* /home/nitrous/code/vacsf.org/
- Push vacsf.org to github with .nojekyll
- Jekyll-Rocket-Vagrant (Windows: install VirtualBox) a. Install Vagrant b. Clone this repository to your local machine. (Either with the GitHub app or via git clone https://github.com/trek10inc/jekyll-rocket ) c. %> vagrant up d. %> vagrant ssh e. %> jekyll serve --watch --force_polling -H 0.0.0.0 --drafts --incremental --config _config.yml,_config_dev.yml & f. build command is similar to Development build above.
Great resource for getting unicode index of special Vietnamese characters http://www.fileformat.info/info/unicode/char/search.htm?q=%E1%BA%A3&preview=entity
Required for jekyll 3.0 sudo gem install jekyll-paginate gem install jekyll-gist gem install jekyll-seo-tag
PubStorm: pubstorm projects (do this in PubStorm directory) pubstorm publish (do this in project directory, ie. vacsf.org)