-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathRakefile
35 lines (25 loc) · 886 Bytes
/
Rakefile
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
require 'rake'
require 'colorator'
desc 'Staging'
task :staging do
system "sed -i 's/vimberlin.de/vimfest.wikimatze.de/g' config.toml"
system 'hugo -F'
puts 'Deploying site with lovely rsync ..'.bold.green
system "rsync -vru -e \"ssh\" --del public/* xa6195@xa6.serverdomain.org:/home/www/stagingvimfest/"
puts '# Please refer to https://vimfest.wikimatze.de to visit the staging system'.green
system "sed -i 's/vimfest.wikimatze.de/vimberlin.de/g' config.toml"
end
desc 'Deploy'
task :deploy do
puts 'Building hugo ..'.bold.green
system 'hugo -F'
puts 'Deploying site with lovely rsync ..'.bold.green
system "rsync -vru -e \"ssh\" --del public/* xa6195@xa6.serverdomain.org:/home/www/vimberlin/"
puts 'Done!'.green
end
desc 'Startup hugo'
task :s do
puts 'hugo is finished with building..'.bold.green
system 'hugo server -F'
end
task :default => :s