Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
cleaned up rakefile
- Loading branch information
1 parent
c4fdb90
commit e6d4947
Showing
1 changed file
with
5 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |