File tree Expand file tree Collapse file tree
cookbooks/github-pages/recipes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Software required to be installed before:
99* Putty - http://www.putty.org
1010* GitHub - https://windows.github.com/
1111
12- ** Tested with:** VirtualBox 4.3, Vagrant 1.6.5
12+ ** Tested with:** VirtualBox 4.3.20 , Vagrant 1.6.5
1313
1414Cookbooks & receipts based on the requirements defined on:
1515------------------------------------------------------------------
@@ -24,11 +24,22 @@ Cookbooks:
2424* ruby
2525* rubygems
2626
27- Useful Commands :
27+ Start jekyll server (as root) :
2828------------------------------------------------------------------
2929```
30- jekyll --help
31- sudo jekyll serve --port 80 --verbose --watch
30+ jekyll serve --source /var/www/jekyll-example/ --destination /tmp/jekyll/sites/jekyll-example/ --port 80 --watch --force_polling
31+ ```
32+
33+ Building page (as root):
34+ ------------------------------------------------------------------
35+ ```
36+ jekyll build --source /var/www/jekyll-example/ --destination /tmp/jekyll/sites/jekyll-example/ --watch --force_polling
37+ ```
38+
39+ Kill jekyll's (as root):
40+ ------------------------------------------------------------------
41+ ```
42+ sudo kill -9 $(ps opid= -C jekyll)
3243```
3344
3445Useful Links:
Original file line number Diff line number Diff line change @@ -82,12 +82,5 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
8282 chef . add_recipe "rubygems"
8383 chef . add_recipe "github-pages"
8484
85- # json config used in the recipes
86- chef . json = {
87- "jekyll-hosts" => {
88- "jekyll-example" => { "port" => 80 , "name" => "jekyll-example" }
89- }
90- }
91-
9285 end
9386end
Original file line number Diff line number Diff line change 2222end
2323
2424execute "start automatic building of 'jekyll-example' with jekyll" do
25- command "jekyll build --source /var/www/jekyll-example/ --destination /tmp/jekyll/sites/jekyll-example/"
25+ command "jekyll serve --source /var/www/jekyll-example/ --destination /tmp/jekyll/sites/jekyll-example/ --port 80 --watch --force_polling --detach "
2626 user "root"
2727 action :run
2828end
You can’t perform that action at this time.
0 commit comments