# Netlify deployment issues

**URL:** <https://discourse.gohugo.io/t/netlify-deployment-issues/8857>\
**Category:** support\
**Created:** [October 19, 2017, 11:29am UTC](https://discourse.gohugo.io/t/netlify-deployment-issues/8857 "2017-10-19T11:29:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon71229217](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@anon71229217](https://discourse.gohugo.io/u/anon71229217)\
**Post date:** [October 19, 2017, 11:29am UTC](https://discourse.gohugo.io/t/netlify-deployment-issues/8857/1 "2017-10-19T11:29:59Z")

</div>

Would someone be able to help me deploy [my hugo site](https://github.com/ItsPugle/ItsPugle-Hugo/) to Netlify?

 ![screenshot 2017-10-19 at 9 22 00 pm](https://user-images.githubusercontent.com/22669894/31768640-92fe5f26-b513-11e7-8b32-48158e48d249.png)

```auto
9:19:05 PM: Build ready to start
9:19:06 PM: Fetching cached dependencies
9:19:06 PM: Expected build cache - but failed to find it
9:19:07 PM: Failed to extract cache, continuing with build
9:19:07 PM: No cached dependencies found. Cloning fresh repo
9:19:07 PM: git clone git@github.com:ItsPugle/ItsPugle-Hugo
9:19:08 PM: git remote rm origin
9:19:08 PM: Preparing Git Reference refs/heads/master
9:19:13 PM: Running build command: hugo
9:19:15 PM: Downloading and installing node v6.11.4...
9:19:15 PM: Downloading https://nodejs.org/dist/v6.11.4/node-v6.11.4-linux-x64.tar.xz...
9:19:16 PM: 
                                                                           0.0%
9:19:16 PM: 
9:19:16 PM: 1.1%
9:19:16 PM: 
### 4.9%
9:19:16 PM: 
############## 19.6%
9:19:16 PM: 
############################# 41.5%
9:19:16 PM: 
#########################################
9:19:16 PM: ########
9:19:16 PM: 68.
9:19:16 PM: 1
9:19:17 PM: %
9:19:17 PM: 
######################################################################## 100.0%
9:19:17 PM: 
9:19:17 PM: Computing checksum with sha256sum
9:19:17 PM: Checksums matched!
9:19:18 PM: Now using node v6.11.4 (npm v3.10.10)
9:19:18 PM: Using version v6.11.4 of node
9:19:18 PM: Using /opt/buildhome/.rvm/gems/ruby-2.1.2
9:19:19 PM: ERROR: 2017/10/19 11:19:19 hugo.go:346: No 'baseurl' set in configuration or as a flag. Features like page menus will not work without one.
9:19:19 PM: ERROR: 2017/10/19 11:19:19 hugo.go:421: Current theme does not support Hugo version 0.17. Minimum version required is 0.25
9:19:19 PM: Started building sites ...
9:19:19 PM: ERROR: 2017/10/19 11:19:19 template.go:477: template: theme/partials/site-footer.html:4: function "now" not defined
9:19:19 PM: ERROR: 2017/10/19 11:19:19 general.go:212: Error while rendering taxonomy terms for tag: template: /opt/build/repo/themes/ananke/layouts/_default/baseof.html:5:9: executing "main" at <.Content>: can't evaluate field Content in type *hugolib.Node
9:19:21 PM: Build complete: exit code: 255
9:19:21 PM: Cleaning up docker container
9:19:21 PM: Error running command: Build script returned non-zero exit code: 255
9:19:21 PM: An error occurred while building the site, skipping the deploy and cache refresh.
9:19:22 PM: Build script returned non-zero exit code: 255
9:19:22 PM: Finished processing build request in 16.329727861s

```

Copied from [#3982](https://github.com/gohugoio/hugo/issues/3982).

---

<div class="post-metadata">

**Author:** ![kaushalmodi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kaushalmodi/32/2567_2.png) [@kaushalmodi](https://discourse.gohugo.io/u/kaushalmodi)\
**Post date:** [October 19, 2017, 12:57pm UTC](https://discourse.gohugo.io/t/netlify-deployment-issues/8857/2 "2017-10-19T12:57:51Z")

</div>

**A lot of things are wrong!**

You just need to read the errors.

* * *

As the error says:

> 9:19:19 PM: ERROR: 2017/10/19 11:19:19 hugo.go:346: No ‘baseurl’ set in configuration or as a flag. Features like page menus will not work without one.

You are missing a baseurl in you [`config.toml`](https://github.com/ItsPugle/ItsPugle-Hugo/blob/master/config.toml). You can either specify the `baseurl` in there, or put it directly in the Netlify **Build command** as `hugo --baseURL=https://YOUR-DOMAIN.com/`.

* * *

Also using plain `hugo` uses an archaic `hugo` version… version 0.17 as in the below error.

> 9:19:19 PM: ERROR: 2017/10/19 11:19:19 hugo.go:421: Current theme does not support Hugo version 0.17. Minimum version required is 0.25

Instead, set the hugo version to the latest in Netlify by setting the `HUGO_VERSION` to **0.30.2** or the latest version in _[Netlify App](https://app.netlify.com/sites/YOUR-SITE/settings/deploys#build-environment-variables)_.

Below error is related because that old hugo version does not understand `now`.

> 9:19:19 PM: ERROR: 2017/10/19 11:19:19 template.go:477: template: theme/partials/site-footer.html:4: function “now” not defined

---

<div class="post-metadata">

**Author:** ![anon71229217](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@anon71229217](https://discourse.gohugo.io/u/anon71229217)\
**Post date:** [October 20, 2017, 12:58am UTC](https://discourse.gohugo.io/t/netlify-deployment-issues/8857/3 "2017-10-20T00:58:20Z")

</div>

Hey @kaushalmodi!

Thanks for getting back to me. I’m not familiar in the slightest with deployment and all that digital goodness, so I struggled to understand what those errors actually mean.

I’ve added in a `baseURL` to the config.toml file per the deploy URL: [https://general-manager-chipmunk-77848.netlify.com/](https://general-manager-chipmunk-77848.netlify.com/). I’ve also added the `HUGO_VERSION` variable to the build variables, and set it to 0.30.2 per your suggestion.

Cheers, and thank you so much ❤
