Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cleaned up rakefile
  • Loading branch information
gizmomogwai committed Dec 10, 2011
1 parent c4fdb90 commit e6d4947
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions Rakefile
@@ -1,29 +1,24 @@
require 'nanoc3/tasks'

#desc 'copy assets'
#task :copy_assets => :compile do
# system 'rsync -gprt --partial assets/ output'
#end

desc 'deploy local webserver'
task :deploy_local => :compile do
system 'rsync -gprt --partial output/ ~/Sites'
system 'open http://localhost/~gizmo'
sh 'rsync -gprt --partial output/ ~/Sites'
sh 'open http://localhost/~gizmo'
end

desc 'deploy to production webserver'
task :deploy do
system 'rsync -r output/ gizmo@gizmomogwai.dyndns.org:/Users/gizmo/Sites'
sh 'rsync -r output/ gizmo@gizmomogwai.dyndns.org:/Users/gizmo/Sites'
end

desc 'run nanoc3'
task :compile do
system 'nanoc3 co'
sh 'nanoc3 co'
end

desc 'cleanup'
task :clean do
system 'rm -rf output'
sh 'rm -rf output/*'
end

task :default => :deploy_local

0 comments on commit e6d4947

Please sign in to comment.