 gulp.task "rsync:up", ["build"], () ->
   rsyncUp = {
     src: conf.rsyncFolders.localFolder,
-    dest: "#{pvt.username}@#{pvt.domain}:#{conf.rsyncFolders.hostFolder}"
+    dest: "#{secrets.username}@#{secrets.domain}:#{conf.rsyncFolders.hostFolder}"
   }
   opts = extend rsyncUp, conf.ssh, conf.rsyncOpts
   rsync opts, (error, stdout, stderr, cmd) ->

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

pkg    = require "./package.json"
conf   = require "./gulpconfig.json"
try
  secrets = require "./secrets.json"
catch err
  console.log err

