-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
38 lines (30 loc) · 770 Bytes
/
Copy pathRakefile
File metadata and controls
38 lines (30 loc) · 770 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
require 'rubygems'
require 'bundler/setup'
require 'time'
CONFIG = {
'posts' => 'weblog/',
'post_ext' => 'md',
's3_url' => "s3://media.jmesnil.net/"
}
task :default => :dev
desc "Run in developer mode"
task :dev => :check do
system "awestruct --dev -b 0.0.0.0 --no-livereload --no-generate-on-access"
end
desc "Force a regeneration"
task :rebuild do
system "awestruct --force"
end
desc "Build the site and deploy to S3"
task :production => :rebuild do
system "awestruct -P production --deploy"
end
desc "Build the site and deploy to S3 staging"
task :staging => :rebuild do
system "awestruct -P staging --deploy"
end
task :check do
Dir.mkdir('_tmp') unless Dir.exist?('_tmp')
end
#Load custom rake scripts
Dir['_rake/*.rake'].each { |r| load r }