This commit is contained in:
John Bintz 2020-04-22 17:37:19 -04:00
parent 8c8ad8e96e
commit e63f84b044
6 changed files with 19 additions and 11 deletions

View File

@ -90,15 +90,16 @@ lib64/ld-linux-x86-64.so.2
opt/app opt/app
opt/app/.babelrc opt/app/.babelrc
opt/app/.cloudcmd.menu.js opt/app/.cloudcmd.menu.js
opt/app/.nuxt/dist/0.nuxt.bundle.ef50340c3600ea7e30a7.js opt/app/.nuxt/dist/0.nuxt.bundle.aed0810b10ee27bc1f4c.js
opt/app/.nuxt/dist/1.nuxt.bundle.89a9958091c34dcc68ed.js opt/app/.nuxt/dist/1.nuxt.bundle.89a9958091c34dcc68ed.js
opt/app/.nuxt/dist/index.html opt/app/.nuxt/dist/index.html
opt/app/.nuxt/dist/manifest.7c112ec70f8b3c557a15.js opt/app/.nuxt/dist/manifest.24786bf1655f163f53d8.js
opt/app/.nuxt/dist/nuxt.bundle.dbf51a8ed53569a6c1b0.js opt/app/.nuxt/dist/nuxt.bundle.83d0779466233bb9bf53.js
opt/app/.nuxt/dist/server-bundle.json opt/app/.nuxt/dist/server-bundle.json
opt/app/.nuxt/dist/vendor.bundle.7c112ec70f8b3c557a15.js opt/app/.nuxt/dist/vendor.bundle.24786bf1655f163f53d8.js
opt/app/.sandstorm/launcher.sh opt/app/.sandstorm/launcher.sh
opt/app/README.md opt/app/README.md
opt/app/hugo-version
opt/app/node_modules/.bin/babel-node opt/app/node_modules/.bin/babel-node
opt/app/node_modules/@babel/code-frame/lib/index.js opt/app/node_modules/@babel/code-frame/lib/index.js
opt/app/node_modules/@babel/code-frame/package.json opt/app/node_modules/@babel/code-frame/package.json

View File

@ -19,9 +19,9 @@ const pkgdef :Spk.PackageDefinition = (
appTitle = (defaultText = "Hugo"), appTitle = (defaultText = "Hugo"),
appVersion = 4, # Increment this for every release. appVersion = 5, # Increment this for every release.
appMarketingVersion = (defaultText = "0.69.0~2020-04-21"), appMarketingVersion = (defaultText = "0.69.1~2020-04-22"),
# Human-readable representation of appVersion. Should match the way you # Human-readable representation of appVersion. Should match the way you
# identify versions of your app in documentation and marketing. # identify versions of your app in documentation and marketing.

View File

@ -5,8 +5,8 @@
set -euo pipefail set -euo pipefail
export HUGO_VERSION=0.69.0 export HUGO_VERSION=$(cat /opt/app/hugo-version)
export NODE_VERSION=10 export NODE_VERSION=$(cat /opt/app/.nvmrc)
apt-get update apt-get update
apt-get install -y git apt-get install -y git

1
hugo-version Normal file
View File

@ -0,0 +1 @@
0.69.1

View File

@ -1,9 +1,12 @@
var fs = require('fs')
var hugoVersion = fs.readFileSync('hugo-version').toString()
module.exports = { module.exports = {
/* /*
** Headers of the page ** Headers of the page
*/ */
head: { head: {
titleTemplate: "%s - Hugo", titleTemplate: `%s - hugo-standstorm v${hugoVersion}`,
meta: [ meta: [
{ charset: 'utf-8' }, { charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' } { name: 'viewport', content: 'width=device-width, initial-scale=1' }
@ -13,7 +16,8 @@ module.exports = {
** Add env variables ** Add env variables
*/ */
env: { env: {
baseURL: process.env.BASE_URL || "http://127.0.0.1:8000" baseURL: process.env.BASE_URL || "http://127.0.0.1:8000",
hugoVersion: hugoVersion
}, },
plugins: [ plugins: [
"~plugins/sandstorm" "~plugins/sandstorm"

View File

@ -1,5 +1,6 @@
<template> <template>
<div> <div>
<h1>hugo-sandstorm version {{hugoVersion}}</h1>
<template v-if="isLoading"> <template v-if="isLoading">
<p> <p>
Loading public site information. This may take a while! Loading public site information. This may take a while!
@ -97,7 +98,8 @@ unsafe= true
publicId: "", publicId: "",
isLoading: true, isLoading: true,
loadError: null, loadError: null,
dirty: false dirty: false,
hugoVersion: process.env.hugoVersion
}), }),
computed: { computed: {
gitHost: () => { gitHost: () => {