mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Merge pull request #52 from rozza/StaticSync
Static changes shouldn't be destructive to existing files
This commit is contained in:
commit
00839567c7
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -132,7 +132,7 @@ func main() {
|
||||||
|
|
||||||
func copyStatic(config *hugolib.Config) error {
|
func copyStatic(config *hugolib.Config) error {
|
||||||
// Copy Static to Destination
|
// 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) {
|
func serve(port string, config *hugolib.Config) {
|
||||||
|
|
Loading…
Reference in a new issue