simple rakefile for deployment
This commit is contained in:
parent
53b3131638
commit
016261d3d0
21
Rakefile
Normal file
21
Rakefile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
task :default => :server
|
||||||
|
|
||||||
|
desc 'Build site with Jekyll'
|
||||||
|
task :build do
|
||||||
|
jekyll
|
||||||
|
end
|
||||||
|
|
||||||
|
desc 'Build and start server with --auto'
|
||||||
|
task :server do
|
||||||
|
jekyll '--server --auto'
|
||||||
|
end
|
||||||
|
|
||||||
|
desc 'Build and deploy'
|
||||||
|
task :deploy => :build do
|
||||||
|
sh 'rsync -rtzh --delete _site/ walkah.net:/var/www/walkah.net/'
|
||||||
|
end
|
||||||
|
|
||||||
|
def jekyll(opts = '')
|
||||||
|
sh 'rm -rf _site'
|
||||||
|
sh 'jekyll ' + opts
|
||||||
|
end
|
@ -8,7 +8,4 @@ pygments: true
|
|||||||
lsi: false
|
lsi: false
|
||||||
markdown: rdiscount
|
markdown: rdiscount
|
||||||
permalink: blog/:title
|
permalink: blog/:title
|
||||||
paginate: 10
|
exclude: Gemfile, Gemfile.lock, Rakefile
|
||||||
pagination_dir: blog
|
|
||||||
exclude: Gemfile, Gemfile.lock
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user