desc"Default deploy task"task:deploydo# Check if preview posts exist, which should not be publishedifFile.exists?(".preview-mode")puts"## Found posts in preview mode, regenerating files ..."File.delete(".preview-mode")Rake::Task[:generate].executeendRake::Task[:copydot].invoke(source_dir,public_dir)atom2rssDir='~/osc_git/php_works/'Rake::Task["#{deploy_default}"].execute//在这里加入同步脚本执行end