Static changes shouldn't be destructive to existing files

Currently changing css deletes all the site published html when it copies.
Refs #46
This commit is contained in:
Ross Lawley 2013-08-20 20:32:32 +01:00
parent eff8457ac9
commit 5aa47a7b07

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) {