Hyper Open Edge Cloud

How To Deploy Hugo in Theia With Embedded Software URL

How To Deploy Hugo in Theia With Embedded Software URL
  • Last Update:2021-09-07
  • Version:001
  • Language:en

Agenda

  • Supply And Request Hugo
  • Wait for Deployment
  • Verification

Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again. 

Prerequisites

  1. A Theia Runner: HowTo Request A Theia Runner Embedded With A Software
  2. Know: How to supply and request a software in Theia

Prepare Supply and Request for Hugo

Follow the steps in HowTo Request A Theia Runner Embedded With A Software to request a Hugo software. 

The Embedded Software URL for Hugo Software is

https://lab.nexedi.com/nexedi/slapos/raw/master/software/hugo/software.cfg

Wait for Installation

Check the logs to make sure it has been deployed and installed without errors:

$ tail -f ~/srv/runner/var/log/slapos-node-software.log

$ tail -f ~/srv/runner/var/log/slapos-node-instance.log

Get Connection Parameters

Get some help from slapos service to have the connection parameters listed:

$ slapos service list
# OUTPUT
# List of services:
# Embedded Instance https://lab.nexedi.com/nexedi/slapos/raw/master/software/hugo/software.cfg
$ slapos service info 'Embedded Instance'

Read Connection Parameters

There are some important parameters:
<parameter id="data">/srv/slapgrid/slappart64/srv/runner/instance/slappart0/srv/hugo</parameter>
<parameter id="go-environment">/srv/slapgrid/slappart64/srv/runner/software/b9ae9628491bee23011cddd7d489b286/go.work/env.sh</parameter>
<parameter id="hugo-server-cdn-url">https://softinst154688.host.vifib.net</parameter>
<parameter id="hugo-server-url">http://[2001:67c:1254:53:b362::af92]:1313</parameter>
<parameter id="monitor-setup-url">https://monitor.app.officejs.com/#page=settings_configurator&amp;url=https://softinst154690.host.vifib.net/public/feeds&amp;username=admin&amp;password=xeoiltsf</parameter> (Replace '&amp;' to '&')
<parameter id="nginx-server-cdn-url">https://softinst154689.host.vifib.net</parameter>

 

Validate

  • Access nginx-server-cdn-url
 

Access nginx-server-cdn-url

Get URL from connection parameter of the nginx-server-cdn-url. Access nginx-server-cdn-url  to have an initial instruction. 

Next: Build A Website With Hugo in Theia