-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
45 lines (35 loc) · 783 Bytes
/
Rakefile
File metadata and controls
45 lines (35 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
def jekyll(opts = "")
sh "rm -rf _site"
sh "jekyll " + opts
end
desc "Build site using Jekyll"
task :build do
jekyll
end
desc "Serve on Localhost with port 4000"
task :default do
jekyll("--server --auto")
end
task :stable do
jekyll("--server --auto", "")
end
task :sass do
# watch sara' disponibile nella prossima versione di sass
# sh "sass --watch lib/sem4r.sass"
sh "sass --update lib/sem4r.sass"
end
namespace :deploy do
# desc "Deploy to Dev"
# task :dev => :build do
# rsync "dev.sem4r.com"
# end
desc "Deploy to Live"
task :live => :build do
rsync "sem4r.com"
end
# desc "Deploy to Dev and Live"
# task :all => [:dev, :live]
def rsync(domain)
sh "rsync -rtz --delete _site/ sem4r@sem4r.com:~/#{domain}/"
end
end