File tree Expand file tree Collapse file tree 3 files changed +22
-14
lines changed Expand file tree Collapse file tree 3 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ In DDEV addons can be installed from the command line using the `ddev get` comma
16
16
## Getting started
17
17
18
18
1 . Create your ddev project with ` ddev config --omit-containers=db `
19
- 2 . Run ` ddev get https://github.com/penyaskito/ddev-hugo/tarball/main `
20
- 3 . Run ` ddev hugo `
21
- 4 . Run ` ddev launch hugo `
19
+ 2 . Run ` ddev get https://github.com/penyaskito/ddev-hugo `
20
+ 3 . Run ` ddev hugo -b public `
21
+ 4 . Run ` ddev launch public `
22
22
23
23
** Contributed and maintained by [ @penyaskito ] ( https://github.com/penyaskito ) **
Original file line number Diff line number Diff line change @@ -7,14 +7,22 @@ setup() {
7
7
export DDEV_NON_INTERACTIVE=true
8
8
ddev delete -Oy ${PROJNAME} > /dev/null 2>&1 || true
9
9
cd " ${TESTDIR} "
10
- ddev config --project-name=${PROJNAME}
10
+ ddev config --project-name=${PROJNAME} --omit-containers=db
11
11
ddev start -y > /dev/null
12
12
}
13
13
14
14
health_checks () {
15
15
# Do something useful here that verifies the add-on
16
16
# ddev exec "curl -s elasticsearch:9200" | grep "${PROJNAME}-elasticsearch"
17
- ddev exec " curl -s https://localhost:443/"
17
+ ddev exec hugo new site quickstart
18
+ cp -r quickstart/* .
19
+ ddev exec hugo new theme testtheme
20
+ echo " {{.Site.Home.Content}}" >> themes/testtheme/layouts/index.html
21
+ echo " theme = 'testtheme'" >> config.toml
22
+ ddev exec hugo new _index.md
23
+ echo " # Welcome to Hugo!" >> content/_index.md
24
+ ddev exec hugo -b public
25
+ ddev exec " curl -s https://localhost/public" | grep " Welcome to Hugo"
18
26
}
19
27
20
28
teardown () {
@@ -37,7 +45,7 @@ teardown() {
37
45
set -eu -o pipefail
38
46
cd ${TESTDIR} || ( printf " unable to cd to ${TESTDIR} \n" && exit 1 )
39
47
echo " # ddev get ddev/ddev-hugo with project ${PROJNAME} in ${TESTDIR} ($( pwd) )" >&3
40
- ddev get ddev /ddev-hugo
48
+ ddev get penyaskito /ddev-hugo
41
49
ddev restart > /dev/null
42
50
health_checks
43
51
}
Original file line number Diff line number Diff line change 1
1
#ddev-generated
2
- ENV HUGO_BIND="0.0.0.0" \
3
- HUGO_DESTINATION="hugo" \
2
+ ENV HUGO_EDITION="extended" \
3
+ HUGO_BIND="0.0.0.0" \
4
+ HUGO_DESTINATION="public" \
4
5
HUGO_ENV="DEV" \
5
6
HUGO_DIR="." \
6
- HUGO_CMD="-b /hugo" \
7
7
HOME="/tmp"
8
8
9
- COPY --from=klakegg/hugo:debian /usr/bin/hugo /usr/bin/hugo
10
- COPY --from=klakegg/hugo:debian /usr/bin/hugo-official /usr/bin/hugo-official
11
- COPY --from=klakegg/hugo:debian /etc/profile.d/hugo.sh /etc/profile.d/hugo.sh
12
- COPY --from=klakegg/hugo:debian /etc/profile.d/hugo_shell.sh /etc/profile.d/hugo_shell.sh
13
- COPY --from=klakegg/hugo:debian /usr/lib/hugo /usr/lib/hugo
9
+ COPY --from=klakegg/hugo:ext- debian /usr/bin/hugo /usr/bin/hugo
10
+ COPY --from=klakegg/hugo:ext- debian /usr/bin/hugo-official /usr/bin/hugo-official
11
+ COPY --from=klakegg/hugo:ext- debian /etc/profile.d/hugo.sh /etc/profile.d/hugo.sh
12
+ COPY --from=klakegg/hugo:ext- debian /etc/profile.d/hugo_shell.sh /etc/profile.d/hugo_shell.sh
13
+ COPY --from=klakegg/hugo:ext- debian /usr/lib/hugo /usr/lib/hugo
You can’t perform that action at this time.
0 commit comments