 
 
 # sync to production
-gulp.task 'rsync:up', () ->
+gulp.task "rsync:up", ["build"], () ->
   rsyncUp = {
     src: conf.rsyncFolders.localFolder,
     dest: "#{pvt.username}@#{pvt.domain}:#{conf.rsyncFolders.hostFolder}"



# dry-run sync to prod
gulp.task "rsync:updry", () ->
  rsyncUp = {
    dest: "#{pvt.username}@#{pvt.domain}:#{conf.rsyncFolders.hostFolder}"
    src: conf.rsyncFolders.localFolder,



# deploy local changes to staging
gulp.task "rsync:staging-up", ["build"], () ->
  rsyncUp = {
    dest: "#{pvt.username}@#{pvt.domain}:#{conf.rsyncFolders.hostFolder}/staging"
    src: conf.rsyncFolders.localFolder,
