Skip to content

Commit

Permalink
devcontainer build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Joeycho committed Jan 27, 2025
1 parent 3503eb4 commit 173f2b2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,12 @@
"extended": true
}
},
"postCreateCommand": "yarn install"
"appPort": ["1313:1313"],
"portsAttributes": {
"1313": {
"label": "Hugo Server",
"onAutoForward": "openBrowser"
}
},
"postCreateCommand": "yarn view:local"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
"update:starter": "scripts/update-starter.sh",
"update:starters": "hugo mod get -u ./..."
}
}
}
2 changes: 1 addition & 1 deletion scripts/view-starter-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-reveal -> ../..
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-seo -> ../../../modules/wowchemy-seo,
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-core -> ../../../modules/wowchemy-core,
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-netlify-cms -> ../../../modules/wowchemy-plugin-netlify-cms" \
hugo server --panicOnWarning --minify -F \
hugo server --bind=0.0.0.0 --port=1313 --panicOnWarning --minify -F \
--source "starters/$1" --destination "./dist"

0 comments on commit 173f2b2

Please sign in to comment.