Some things have changed since I’ve deployed a hugo site about 8 months ago and I’ve run into some issues with getting the site to display. When I host locally, there’s no issue.
Things i’ve tried:
- designating the content folder as the public folder on netfliy
- changing the hugo version to something older like 0.70.0
- different build commands (hugo, hugo -D)
Everything in the logs pass, but the page isn’t found. Any advice?
1:17:58 PM: Build ready to start
1:18:01 PM: build-image version: 30f629161c0736b1a3ecd8b418e5eeffab5c0faf
1:18:01 PM: build-image tag: v3.3.14
1:18:01 PM: buildbot version: 80b5e22571e5cc4a3ded879ff356be5e92200072
1:18:01 PM: Fetching cached dependencies
1:18:01 PM: Starting to download cache of 147.9MB
1:18:01 PM: Finished downloading cache in 762.835834ms
1:18:01 PM: Starting to extract cache
1:18:06 PM: Finished extracting cache in 4.70259091s
1:18:06 PM: Finished fetching cache in 5.515595325s
1:18:06 PM: Starting to prepare the repo for build
1:18:07 PM: Preparing Git Reference refs/heads/master
1:18:08 PM: Starting build script
1:18:08 PM: Installing dependencies
1:18:09 PM: Started restoring cached node version
1:18:12 PM: Finished restoring cached node version
1:18:13 PM: v10.21.0 is already installed.
1:18:15 PM: Now using node v10.21.0 (npm v6.14.4)
1:18:15 PM: Started restoring cached build plugins
1:18:15 PM: Finished restoring cached build plugins
1:18:15 PM: Attempting ruby version 2.6.2, read from environment
1:18:16 PM: Using ruby version 2.6.2
1:18:16 PM: Using PHP version 5.6
1:18:16 PM: 5.2 is already installed.
1:18:16 PM: Using Swift version 5.2
1:18:16 PM: Installing Hugo 0.72.0
1:18:16 PM: Hugo Static Site Generator v0.72.0-8A7EF3CF/extended linux/amd64 BuildDate: 2020-05-31T12:14:23Z
1:18:16 PM: Started restoring cached go cache
1:18:16 PM: Finished restoring cached go cache
1:18:17 PM: go version go1.12 linux/amd64
1:18:17 PM: go version go1.12 linux/amd64
1:18:17 PM: Installing missing commands
1:18:17 PM: Verify run directory
1:18:18 PM:
1:18:18 PM: ┌─────────────────────────────┐
1:18:18 PM: │ Netlify Build │
1:18:18 PM: └─────────────────────────────┘
1:18:18 PM:
1:18:18 PM: ❯ Version
1:18:18 PM: @netlify/build 1.0.14
1:18:18 PM:
1:18:18 PM: ❯ Flags
1:18:18 PM: mode: buildbot
1:18:18 PM:
1:18:18 PM: ❯ Current directory
1:18:18 PM: /opt/build/repo
1:18:18 PM:
1:18:18 PM: ❯ Config file
1:18:18 PM: No config file was defined: using default values.
1:18:18 PM:
1:18:18 PM: ❯ Context
1:18:18 PM: production
1:18:18 PM:
1:18:18 PM: ┌────────────────────────────────┐
1:18:18 PM: │ 1. Build command from settings │
1:18:18 PM: └────────────────────────────────┘
1:18:18 PM:
1:18:18 PM: $ hugo -D
1:18:18 PM: Building sites …
1:18:20 PM: |
1:18:20 PM: EN
1:18:20 PM: -------------------+------
1:18:20 PM: Pages | 171
1:18:20 PM: Paginator pages | 0
1:18:20 PM: Non-page files | 0
1:18:20 PM: Static files | 78
1:18:20 PM: Processed images | 0
1:18:20 PM: Aliases | 0
1:18:20 PM: Sitemaps | 1
1:18:20 PM: Cleaned | 0
1:18:20 PM: Total in 1396 ms
1:18:20 PM:
1:18:20 PM: (build.command completed in 1.5s)
1:18:20 PM:
1:18:20 PM: ┌─────────────────────────────┐
1:18:20 PM: │ Netlify Build Complete │
1:18:20 PM: └─────────────────────────────┘
1:18:20 PM:
1:18:20 PM: (Netlify Build completed in 1.6s)
1:18:20 PM: Caching artifacts
1:18:20 PM: Started saving build plugins
1:18:20 PM: Finished saving build plugins
1:18:20 PM: Started saving pip cache
1:18:20 PM: Finished saving pip cache
1:18:20 PM: Started saving emacs cask dependencies
1:18:20 PM: Finished saving emacs cask dependencies
1:18:20 PM: Started saving maven dependencies
1:18:20 PM: Finished saving maven dependencies
1:18:20 PM: Started saving boot dependencies
1:18:20 PM: Finished saving boot dependencies
1:18:20 PM: Started saving go dependencies
1:18:20 PM: Finished saving go dependencies
1:18:20 PM: Build script success
1:18:20 PM: Starting to deploy site from 'content'
1:18:20 PM: Creating deploy tree
1:18:21 PM: Creating deploy upload records
1:18:21 PM: 0 new files to upload
1:18:21 PM: 0 new functions to upload
1:18:21 PM: Starting post processing
1:18:21 PM: Post processing done
1:18:21 PM: Site is live
1:18:41 PM: Finished processing build request in 40.912877032s