Sha256: 6d2463073eba898813508f820b834ef3cdde56c9fb86ea5b863c2e8b4117037f
Contents?: true
Size: 553 Bytes
Versions: 2
Compression:
Stored size: 553 Bytes
Contents
# Settings: NOTES_PATH= File.expand_path("./comics/notes") IMAGE_PATH= File.expand_path("./comics/images") # For the SYNC task SERVER='USERNAME@YOURSITE.COM' FOLDER="~/YOURSITE.COM" require 'middleman-webcomic/tasks' desc "Runs server" task :server do system "middleman server" end desc "Runs build" task :build do system "middleman build" end desc "Syncs with public server using rsync (if configured)" task :sync=>:build do cmd= "rsync -avz --delete build/ #{SERVER}:#{FOLDER}" puts "Running:\n#{cmd}\n" system(cmd) puts "Done." end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
middleman-webcomic-0.5.1 | lib/middleman-webcomic/template/Rakefile.tt |
middleman-webcomic-0.5.0 | lib/middleman-webcomic/template/Rakefile.tt |