Skip to content

Commit

Permalink
Modify Netlify build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Aug 24, 2018
1 parent 61616ab commit b233063
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
[build]
base = "website"
publish = "website/public"
command = "make build"
command = "make netlify-production-build"

[build.environment]
HUGO_VERSION = "0.46"

[context.deploy-preview]
command = "hugo --enableGitInfo -b $DEPLOY_PRIME_URL"
command = "make netlify-staging-build"

[context.branch-deploy]
command = "hugo --enableGitInfo -b $DEPLOY_PRIME_URL"
command = "hugo netlify-staging-build"
5 changes: 4 additions & 1 deletion website/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
get-sass:
yarn

build: get-sass
netlify-production-build: get-sass
hugo

netlify-staging-build: get-sass
hugo -b $(DEPLOY_PRIME_URL)

dev:
hugo server --disableFastRender

0 comments on commit b233063

Please sign in to comment.