Project

General

Profile

Actions

Task #3767

closed

How to deploy a new static website

Added by Juan José González about 1 month ago. Updated 27 days ago.

Status:
Closed
Priority:
Normal
Category:
Website
Target version:
-
Start date:
Due date:
% Done:

0%

Tags:

Description

Hello,

I am trying Hugo for the new latam conference website, I have a repo and I would like to deploy a static website that respond to latam.conference.libreoffice.org.

so could I have a new repo to publish my code?
and how can I deploy the new static website?

Thank so much

Actions #1

Updated by Beluga Beluga about 1 month ago

  • Assignee set to Guilhem Moulin
Actions #2

Updated by Guilhem Moulin about 1 month ago

  • Status changed from New to In Progress

Juan José González wrote:

so could I have a new repo to publish my code?

Please use https://gerrit.libreoffice.org/admin/repos/conferences/latam,general .

and how can I deploy the new static website?

I suggest that I deploy a new CD pipeline for that (like we have for TDF's and other production Hugo-based sites). That way any push to the default branch automatically makes it to production.

Actions #3

Updated by Guilhem Moulin about 1 month ago

Guilhem Moulin wrote in #note-2:

and how can I deploy the new static website?

I suggest that I deploy a new CD pipeline for that (like we have for TDF's and other production Hugo-based sites). That way any push to the default branch automatically makes it to production.

Did that now, but generation fails:

WARN Module "libocon-latam-2024" is not compatible with this Hugo version; run "hugo mod graph" for more information.
Start building sites …
[…]
ERROR render of "home" failed: "…/themes/libocon-latam-2024/layouts/_default/baseof.html:2:18": execute of template failed: template: _default/home.html:2:18: executing "_default/home.html" at <site>: can't evaluate field LanguageCode in type *langs.Language
ERROR render of "taxonomy" failed: "…/themes/libocon-latam-2024/layouts/_default/baseof.html:2:18": execute of template failed: template: _default/list.html:2:18: executing "_default/list.html" at <site>: can't evaluate field LanguageCode in type *langs.Language
ERROR render of "section" failed: "…/themes/libocon-latam-2024/layouts/_default/baseof.html:2:18": execute of template failed: template: _default/list.html:2:18: executing "_default/list.html" at <site>: can't evaluate field LanguageCode in type *langs.Language
ERROR render of "taxonomy" failed: "…/themes/libocon-latam-2024/layouts/_default/baseof.html:2:18": execute of template failed: template: _default/list.html:2:18: executing "_default/list.html" at <site>: can't evaluate field LanguageCode in type *langs.Language
Error: Error building site: failed to render pages: render of "page" failed: "…/themes/libocon-latam-2024/layouts/_default/baseof.html:2:18": execute of template failed: template: _default/single.html:2:18: executing "_default/single.html" at <site>: can't evaluate field LanguageCode in type *langs.Language

Which Hugo version are you using in development? Ideally the site shouldn't use any feature introduced after version v0.111.3 (i.e. current Debian stable).

I haven't changed the DNS records yet.

Actions #4

Updated by Juan José González about 1 month ago

Thank you Guilhem

I did the changes to run it with that specific version. It should work now.

Can we wait pointing the DNS for a bit, I need to update the text first

Actions #5

Updated by Guilhem Moulin about 1 month ago

No problem, just let me know when to make the switch. In the meantime I lowered the TTL of the existing record to speed up the transition.

Hugo v111.3 still shows the following warning

Module "libocon-latam-2024" is not compatible with this Hugo version; run "hugo mod graph" for more information.

but it looks like it's not fatal, at least it's able to built the site now. You can see how it looks like by pointing the hostname to 65.109.131.19 on your local resolver (for instance by editing /etc/hosts).

Actions #6

Updated by Juan José González 27 days ago

Hi Guilhem,

The site is ready to be deployed

Actions #7

Updated by Guilhem Moulin 27 days ago

  • Category set to Website
  • Status changed from In Progress to Closed

It's live now :-)

Actions

Also available in: Atom PDF