Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make netlify deploy previews work #889

Closed
geoHeil opened this Issue Jan 21, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@geoHeil
Copy link

geoHeil commented Jan 21, 2019

I want netlify deploy previews to work. My config. TOML:

[build]
  publish = "public"
  command = "hugo"

[context.production.environment]
  HUGO_VERSION = "0.50"
  HUGO_ENV = "production"
  HUGO_ENABLEGITINFO = "true"

[context.deploy-preview]
  publish = "public"
  command = "hugo --buildDrafts --buildFuture --baseURL /"

error logs:

7:17:35 AM: Build ready to start
7:17:37 AM: build-image version: 84aca9ba39e0ee86ba194760fbfc51a808f62543
7:17:37 AM: buildbot version: 57d44fd1631cc3fff8b38fbaf88d3d04f946418a
7:17:37 AM: Fetching cached dependencies
7:17:37 AM: Starting to download cache of 69.9MB
7:17:38 AM: Finished downloading cache in 592.722337ms
7:17:38 AM: Starting to extract cache
7:17:39 AM: Finished extracting cache in 1.312695246s
7:17:39 AM: Finished fetching cache in 1.969591071s
7:17:39 AM: Starting to prepare the repo for build
7:17:39 AM: Preparing Git Reference pull/5/head
7:17:40 AM: Found netlify.toml. Overriding site configuration
7:17:40 AM: Different build command detected, going to use the one specified in the toml file: 'hugo --buildDrafts --buildFuture --baseURL /' versus 'hugo' in the site
7:17:40 AM: Starting build script
7:17:40 AM: Installing dependencies
7:17:41 AM: Started restoring cached node version
7:17:43 AM: Finished restoring cached node version
7:17:43 AM: v8.15.0 is already installed.
7:17:44 AM: Now using node v8.15.0 (npm v6.4.1)
7:17:44 AM: Attempting ruby version 2.3.6, read from environment
7:17:45 AM: Using ruby version 2.3.6
7:17:46 AM: Using PHP version 5.6
7:17:46 AM: Started restoring cached go cache
7:17:46 AM: Finished restoring cached go cache
7:17:46 AM: unset GOOS;
7:17:46 AM: unset GOARCH;
7:17:46 AM: export GOROOT='/opt/buildhome/.gimme/versions/go1.10.linux.amd64';
7:17:46 AM: export PATH="/opt/buildhome/.gimme/versions/go1.10.linux.amd64/bin:${PATH}";
7:17:46 AM: go version >&2;
7:17:46 AM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.10.linux.amd64.env';
7:17:46 AM: go version go1.10 linux/amd64
7:17:46 AM: Installing missing commands
7:17:46 AM: Verify run directory
7:17:46 AM: Executing user command: hugo --buildDrafts --buildFuture --baseURL /
7:17:46 AM: Started building sites ...
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/_default/list.html:25: function "truncate" not defined
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/index.html:2: function "errorf" not defined
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/index.json:4: function "union" not defined
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/docs_sidebar.html:2: function "path" not defined
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/footer.html:5: function "resources" not defined
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/header.html:16: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/page_author.html:5: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/page_header.html:9: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/page_links.html:8: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/page_links_div.html:9: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/post_li_stream.html:12: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/project_li_showcase.html:6: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/publication_li_stream.html:10: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/talk_li_stream.html:10: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/widgets/about.html:44: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/widgets/contact.html:18: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/widgets/featurette.html:22: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/widgets/hero.html:8: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/widgets/posts.html:9: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/widgets/projects.html:40: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/partials/widgets/tag_cloud.html:25: function "math" not defined
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/shortcodes/figure.html:4: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/shortcodes/gallery.html:2: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/shortcodes/slide.html:4: function "cond" not defined
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: theme/shortcodes/video.html:5: unexpected "=" in operand
7:17:46 AM: ERROR: 2019/01/21 06:17:46 template.go:477: template: /opt/build/repo/themes/academic/layouts/slides/baseof.html:26: function "resources" not defined
7:17:46 AM: ERROR: 2019/01/21 06:17:46 page.go:1017: Error parsing page meta data for home/about.md
7:17:46 AM: ERROR: 2019/01/21 06:17:46 page.go:1018: (5, 12): unexpected token
7:17:46 AM: ERROR: 2019/01/21 06:17:46 page.go:497: (5, 12): unexpected token
7:17:46 AM: ERROR: 2019/01/21 06:17:46 page.go:1017: Error parsing page meta data for home/contact.md
7:17:46 AM: ERROR: 2019/01/21 06:17:46 page.go:1018: (5, 12): unexpected token
7:17:46 AM: ERROR: 2019/01/21 06:17:46 page.go:497: (5, 12): unexpected token
7:17:46 AM: ERROR: 2019/01/21 06:17:46 page.go:1017: Error parsing page meta data for home/hero.md
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1018: (5, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:497: (5, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1017: Error parsing page meta data for home/hero_carousel.md
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1018: (5, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:497: (5, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1017: Error parsing page meta data for home/posts.md
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1018: (7, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:497: (7, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1017: Error parsing page meta data for home/projects.md
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1018: (5, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:497: (5, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1017: Error parsing page meta data for home/publications.md
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1017: Error parsing page meta data for home/skills.md
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1018: (4, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:497: (4, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1018: (6, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:497: (6, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1017: Error parsing page meta data for home/tags.md
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1018: (5, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:497: (5, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1017: Error parsing page meta data for home/publications_selected.md
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1018: (7, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:497: (7, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1017: Error parsing page meta data for home/talks.md
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1018: (5, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:497: (5, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1017: Error parsing page meta data for home/talks_selected.md
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1018: (5, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:497: (5, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1017: Error parsing page meta data for home/teaching.md
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1018: (7, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:497: (7, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1017: Error parsing page meta data for talk/_index.md
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1018: (3, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:497: (3, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1017: Error parsing page meta data for publication/_index.md
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1018: (3, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:497: (3, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1017: Error parsing page meta data for post/_index.md
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:1018: (3, 12): unexpected token
7:17:47 AM: ERROR: 2019/01/21 06:17:46 page.go:497: (3, 12): unexpected token
7:17:47 AM: Error: Error building site: Errors reading pages: Error:(5, 12): unexpected token for about.md
7:17:47 AM: Error:(5, 12): unexpected token for contact.md
7:17:47 AM: Error:(5, 12): unexpected token for hero.md
7:17:47 AM: Error:(5, 12): unexpected token for hero_carousel.md
7:17:47 AM: Error:(7, 12): unexpected token for posts.md
7:17:47 AM: Error:(5, 12): unexpected token for projects.md
7:17:47 AM: Error:(4, 12): unexpected token for skills.md
7:17:47 AM: Error:(6, 12): unexpected token for publications.md
7:17:47 AM: Error:(5, 12): unexpected token for tags.md
7:17:47 AM: Error:(7, 12): unexpected token for publications_selected.md
7:17:47 AM: Error:(5, 12): unexpected token for talks.md
7:17:47 AM: Error:(5, 12): unexpected token for talks_selected.md
7:17:47 AM: Error:(7, 12): unexpected token for teaching.md
7:17:47 AM: Error:(3, 12): unexpected token for _index.md
7:17:47 AM: Error:(3, 12): unexpected token for _index.md
7:17:47 AM: Error:(3, 12): unexpected token for _index.md
7:17:47 AM: Caching artifacts
7:17:47 AM: Started saving pip cache
7:17:47 AM: Finished saving pip cache
7:17:47 AM: Started saving emacs cask dependencies
7:17:47 AM: Finished saving emacs cask dependencies
7:17:47 AM: Started saving maven dependencies
7:17:48 AM: Finished saving maven dependencies
7:17:48 AM: Started saving boot dependencies
7:17:48 AM: Finished saving boot dependencies
7:17:48 AM: Started saving go dependencies
7:17:48 AM: Finished saving go dependencies
7:17:48 AM: Error running command: Build script returned non-zero exit code: 255
7:17:48 AM: Failing build: Failed to build site
7:17:48 AM: failed during stage 'building site': Build script returned non-zero exit code: 255
7:17:48 AM: Finished processing build request in 10.977310001s
@geoHeil

This comment has been minimized.

Copy link
Author

geoHeil commented Jan 21, 2019

[build]
  publish = "public"
  command = "hugo"

[build.environment]
  HUGO_VERSION = "0.50"

[context.production.environment]
  HUGO_ENV = "production"
  HUGO_ENABLEGITINFO = "true"

[context.deploy-preview]
  command = "hugo --buildDrafts --buildFuture --baseURL $DEPLOY_PRIME_URL"

is a suitable netlify TOML file. Maybe this should be merged into the main branch of this repository @gcushen

@geoHeil geoHeil closed this Jan 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.