Merge pull request #52 from rozza/StaticSync

Static changes shouldn't be destructive to existing files
This commit is contained in:
Steve Francia 2013-08-20 20:55:56 -07:00
commit 00839567c7

View file

@ -132,7 +132,7 @@ func main() {
func copyStatic(config *hugolib.Config) error {
// Copy Static to Destination
return fsync.SyncDel(config.GetAbsPath(config.PublishDir+"/"), config.GetAbsPath(config.StaticDir+"/"))
return fsync.Sync(config.GetAbsPath(config.PublishDir+"/"), config.GetAbsPath(config.StaticDir+"/"))
}
func serve(port string, config *hugolib.Config) {