task :server do exec 'unicorn -r bundler/setup' end task :dev do unless $LOAD_PATH.last =~ /gitdoc$/ abort "Run rake with the path to GitDocs's source to use dev mode\n"+ "Eg. rake -I ~/Projects/gitdoc dev" end exec "shotgun -I #{$LOAD_PATH.last}" end