mirror of
https://github.com/jimeh/jimeh.me-v3.0.git
synced 2026-02-19 05:46:40 +00:00
added deploy:clean task
This commit is contained in:
5
Rakefile
5
Rakefile
@@ -38,6 +38,11 @@ namespace :deploy do
|
||||
task :reset do
|
||||
rsync ["public/", "assets/"], "#{$user}@#{$server}:#{$path}", ["--delete"]
|
||||
end
|
||||
|
||||
task :clean do
|
||||
system "ssh #{$user}@#{$server} 'cd \"#{$path}\" && rm -rf ./* && rm -rf ./.*'"
|
||||
rsync ["public/", "assets/"], "#{$user}@#{$server}:#{$path}"
|
||||
end
|
||||
end
|
||||
|
||||
def rsync(source, dest, options = [])
|
||||
|
||||
Reference in New Issue
Block a user