Skip to content

Commit

Permalink
fix [config]: netlify.toml build command
Browse files Browse the repository at this point in the history
  • Loading branch information
MunifTanjim committed Aug 6, 2018
1 parent bfae07c commit 4d57973
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
publish = "exampleSite/public"

[context.production]
command = "hugo --source=exampleSite --theme=../.. --baseURL=${URL}"
command = "ln -s ${PWD} ../minimo && hugo --source=exampleSite --baseURL=${URL}"

[context.branch-deploy]
command = "hugo --source=exampleSite --theme=../.. --baseURL=${DEPLOY_PRIME_URL}"
command = "ln -s ${PWD} ../minimo && hugo --source=exampleSite --baseURL=${DEPLOY_PRIME_URL}"

[context.deploy-preview]
command = "hugo --source=exampleSite --theme=../.. --baseURL=${DEPLOY_PRIME_URL}"
command = "ln -s ${PWD} ../minimo && hugo --source=exampleSite --baseURL=${DEPLOY_PRIME_URL}"

[build.environment]
HUGO_THEMESDIR = "../.."
HUGO_VERSION = "0.45"

0 comments on commit 4d57973

Please sign in to comment.