hugo build
- hugo --minify --cleanDestinationDir
- Small websites, daily use
- hugo --minify --cleanDestinationDir --ignoreCache=false
- Large websites, daily use
- hugo --minify --ignoreCache --cleanDestinationDir
- Cache anomalies/Configuration changes
- hugo --minify --gc --cleanDestinationDir
- Regular maintenance, disk cleanup
Server Side
sudo chmod -R 775 content directory
sudo chown -R www:www content directory
hugo port
netstat -ano | findstr "1313"
TCP 127.0.0.1:1313 0.0.0.0:0 LISTENING 37552
taskkill /pid 36204 -f
taskkill /F /IM hugo.exe
-
- Multiple hugo.exe processes are lingering in the system, occupying ports 1313, 1314, and 1316.
- When running hugo server again, it attempts to automatically find a port but may hang due to conflicts with file watchers or resource locks.
- This situation can be resolved using
taskkill /F /IM hugo.exe
Pick a reaction