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 3b3639e
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 = "hugo --source=exampleSite --theme=$(basename $(pwd)) --baseURL=${DEPLOY_PRIME_URL}"

[context.deploy-preview]
command = "hugo --source=exampleSite --theme=../.. --baseURL=${DEPLOY_PRIME_URL}"
command = "hugo --source=exampleSite --theme=$(basename $(pwd)) --baseURL=${DEPLOY_PRIME_URL}"

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

0 comments on commit 3b3639e

Please sign in to comment.