Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple broken ways to run #480

Open
sweco-sedalh opened this issue Nov 21, 2024 · 2 comments · May be fixed by #483
Open

Multiple broken ways to run #480

sweco-sedalh opened this issue Nov 21, 2024 · 2 comments · May be fixed by #483

Comments

@sweco-sedalh
Copy link

sweco-sedalh commented Nov 21, 2024

Tools

No response

Summary

Trying to get the site building in a local development environment (WSL/PyCharm), there seem to be a lot of ways to "run" the site, only some of which are working:

make dev/Dockerfile.dev: (hasn't been updated since 2022)

ERROR 2024/11/21 18:31:59 render of "section" failed: "/app/themes/hugo-bulma-blocks-theme/layouts/_default/list.html:42:3": execute of template failed: template: _default/list.html:42:3: executing "_default/list.html" at <parti
al "footer.html">: error calling partial: "/app/themes/hugo-bulma-blocks-theme/layouts/partials/footer.html:131:22": execute of template failed: template: partials/footer.html:131:22: executing "partials/footer.html" at <readFile (print .Site.Params.commitFile)>: error calling readFile: file does not exist
ERROR 2024/11/21 18:31:59 render of "section" failed: "/app/themes/hugo-bulma-blocks-theme/layouts/_default/list.html:42:3": execute of template failed: template: _default/list.html:42:3: executing "_default/list.html" at <parti
al "footer.html">: error calling partial: "/app/themes/hugo-bulma-blocks-theme/layouts/partials/footer.html:131:22": execute of template failed: template: partials/footer.html:131:22: executing "partials/footer.html" at <readFile (print .Site.Params.commitFile)>: error calling readFile: file does not exist
ERROR 2024/11/21 18:31:59 render of "section" failed: "/app/themes/hugo-bulma-blocks-theme/layouts/_default/list.html:42:3": execute of template failed: template: _default/list.html:42:3: executing "_default/list.html" at <parti
al "footer.html">: error calling partial: "/app/themes/hugo-bulma-blocks-theme/layouts/partials/footer.html:131:22": execute of template failed: template: partials/footer.html:131:22: executing "partials/footer.html" at <readFile (print .Site.Params.commitFile)>: error calling readFile: file does not exist
ERROR 2024/11/21 18:31:59 render of "section" failed: "/app/themes/hugo-bulma-blocks-theme/layouts/_default/list.html:42:3": execute of template failed: template: _default/list.html:42:3: executing "_default/list.html" at <parti
al "footer.html">: error calling partial: "/app/themes/hugo-bulma-blocks-theme/layouts/partials/footer.html:131:22": execute of template failed: template: partials/footer.html:131:22: executing "partials/footer.html" at <readFile (print .Site.Params.commitFile)>: error calling readFile: file does not exist
Error: Error building site: failed to render pages: render of "section" failed: "/app/themes/hugo-bulma-blocks-theme/layouts/people/list.html:24:3": execute of template failed: template: people/list.html:24:3: executing "people/
list.html" at <partial "footer.html">: error calling partial: "/app/themes/hugo-bulma-blocks-theme/layouts/partials/footer.html:131:22": execute of template failed: template: partials/footer.html:131:22: executing "partials/footer.html" at <readFile (print .Site.Params.commitFile)>: error calling readFile: file does not exist

docker-compose.yml: Seems to be obsolete? (also hasn't been updated since 2022)

VS Code tasks: Presumably working but not relevant when using another IDE

In the end I just ran hugo server from the CLI, which works (after realizing that the current version of Hugo isn't working).

I'll create a PR with that instruction as well, but would also like to know if it would be alright to remove docker-compose.yml, Dockerfile.dev and the commands in the Makefile?

@sweco-sedalh sweco-sedalh changed the title Multitude of broken ways to run Multiple broken ways to run Nov 21, 2024
@Xpirix
Copy link
Collaborator

Xpirix commented Nov 22, 2024

Thanks for reporting this @sweco-sedalh.
It should be okay to remove the docker features as they are deprecated and perhaps not being used anymore.

There is also a way to run the development environment with Nix by running nix-shell. It's not documented yet, but it would be great to have that. I can also submit a PR later for this specific part. Please let me know if this is already part of your suggestion.

02JanDal pushed a commit to 02JanDal/QGIS-Website that referenced this issue Nov 22, 2024
@02JanDal 02JanDal linked a pull request Nov 22, 2024 that will close this issue
@sweco-sedalh
Copy link
Author

I'm not sufficiently familiar with nix to be able to confidently do anything with it, so I'll leave that to you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants