Skip to content

Commit 1f3615e

Browse files
committed
Minor cleanup
1 parent 6689229 commit 1f3615e

3 files changed

Lines changed: 16 additions & 12 deletions

File tree

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff 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

1414
Cookbooks & 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

3445
Useful Links:

Vagrantfile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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
9386
end

cookbooks/github-pages/recipes/jekyll-server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
end
2323

2424
execute "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
2828
end

0 commit comments

Comments
 (0)