-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathRakefile
More file actions
43 lines (33 loc) · 774 Bytes
/
Rakefile
File metadata and controls
43 lines (33 loc) · 774 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
def jekyll(opts="", path="")
sh "rm -rf _site"
sh path + "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
desc "Serve on Localhost with port 4000 using development version"
task :unstable do
jekyll "--server --auto", "../jekyll/bin/"
end
desc "Deploy to Dev"
task :deploy => :"deploy:dev"
namespace :deploy do
desc "Deploy to Dev"
task :dev => :build do
rsync "dev.appden.com"
end
desc "Deploy to Live"
task :live => :build do
rsync "appden.com"
end
desc "Deploy to Dev and Live"
task :all => [:dev, :live]
def rsync(domain)
sh "rsync -rtz --delete _site/ scottwkyle@appden.com:~/#{domain}/"
end
end