<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>@Summitt Dweller’s Personal Blog - StaticCMS</title>
    <link>https://blog.summittdweller.com/tags/staticcms/</link>
    <description>All entries in StaticCMS on Personal Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    
    <lastBuildDate>Sat, 13 Jan 2024 15:40:23 +0000</lastBuildDate>
    <atom:link href="https://blog.summittdweller.com/tags/staticcms/" rel="self" type="application/rss+xml" />
    
      
      <item>
        <title>Spinning Up StaticCMS</title>
        <link>https://blog.summittdweller.com/posts/2024/01/2024-01-13-spinning-up-staticcms/</link>
        <pubDate>Sat, 13 Jan 2024 15:40:23 +0000</pubDate>
        <author>Mark McFate</author>
        <guid>https://blog.summittdweller.com/posts/2024/01/2024-01-13-spinning-up-staticcms/</guid>
        <description>&lt;p&gt;Today is Saturday, January 13, 2024, and I won&amp;rsquo;t be able to watch the KC Chief&amp;rsquo;s wildcard playoff game vs. the Miami Dolphins tonight because it is streaming ONLY on Peacock, and I refuse to pay them for the &amp;ldquo;privilege&amp;rdquo; to watch it live.  So, I&amp;rsquo;m going to do something productive instead.  Let&amp;rsquo;s see if I can spin up an instance of &lt;a href=&#34;https://www.staticcms.org/&#34;&gt;StaticCMS&lt;/a&gt; to provide an OPEN CMS for the content editor(s) behind the &lt;a href=&#34;https://Wieting.TamaToledo.com&#34;&gt;Wieting Theatre website&lt;/a&gt;.  &lt;/p&gt;
&lt;h2 id=&#34;the-plan&#34;&gt;The Plan&lt;/h2&gt;
&lt;p&gt;So, the plan here involves establishing a &amp;ldquo;local-only&amp;rdquo; CMS for the &lt;a href=&#34;https://Wieting.TamaToledo.com&#34;&gt;Wieting Theatre website&lt;/a&gt; and running it on the new Ubuntu server in the Wieting&amp;rsquo;s projection booth.  Editors should will be given login credentials to that server where they can run a local copy of the website (it&amp;rsquo;s a Hugo static site) AND a local copy of the CMS editor, make changes, preview them, and commit the changes to the project&amp;rsquo;s GitHub repo.  The website, hosted with &lt;em&gt;AWS Amplify&lt;/em&gt; is then automatically updated based on the updated content.&lt;/p&gt;
&lt;h3 id=&#34;along-the-way&#34;&gt;Along the Way&lt;/h3&gt;
&lt;p&gt;It&amp;rsquo;s worth noting that while looking at &lt;a href=&#34;https://www.staticcms.org&#34;&gt;StaticCMS&lt;/a&gt; I also stumbled upon &lt;a href=&#34;https://mortenson.coffee/work/tabcms/&#34;&gt;tabcms - A CMS that runs in your browser tab&lt;/a&gt; which might be of interest if &amp;ldquo;The Plan&amp;rdquo; doesn&amp;rsquo;t work.&lt;/p&gt;
&lt;h2 id=&#34;first-steps---start-with-a-template&#34;&gt;First Steps - Start with a Template&lt;/h2&gt;
&lt;p&gt;I choose the guidance at &lt;a href=&#34;https://www.staticcms.org/docs/start-with-a-template&#34;&gt;Start with a Template&lt;/a&gt; to get started.  My aim is to clone that repo and build it locally &amp;ldquo;as-is&amp;rdquo;, then see if I can drop my existing &lt;a href=&#34;https://github.com/SummittServices/wieting-ss&#34;&gt;wieting-ss&lt;/a&gt; repo into the &lt;code&gt;site&lt;/code&gt; directory and continue to make it work locally.&lt;/p&gt;
&lt;p&gt;If that works, I&amp;rsquo;ll repeat the same on the Wieting&amp;rsquo;s Ubuntu server and keep pushing forward.  Wish me luck?&lt;/p&gt;
&lt;h3 id=&#34;getting-started&#34;&gt;Getting Started&lt;/h3&gt;
&lt;p&gt;Following the &lt;a href=&#34;https://github.com/StaticJsCMS/static-cms-hugo-netlify-template#local-development&#34;&gt;Local Development&lt;/a&gt; guidance found me cloning this &lt;a href=&#34;https://github.com/StaticJsCMS/static-cms-hugo-netlify-template&#34;&gt;template&lt;/a&gt; then&amp;hellip;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-netlify-template ‹main› 
╰─$ npm install 
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.

added 1567 packages, and audited 1568 packages in 2m

426 packages are looking for funding
  run `npm fund` for details

2 moderate severity vulnerabilities

To address all issues, run:
  npm audit fix

Run `npm audit` for details.
╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-netlify-template ‹main*› 
╰─$ npm start

&amp;gt; static-cms-hugo-netlify-template@1.0.0 start
&amp;gt; run-p start:**


&amp;gt; static-cms-hugo-netlify-template@1.0.0 start:webpack
&amp;gt; webpack-dev-server --config webpack.dev.js --hot --stats-error-details


&amp;gt; static-cms-hugo-netlify-template@1.0.0 start:hugo
&amp;gt; hugo -d ../dist -s site -vw

WARN  --verbose was deprecated in Hugo v0.114.0 and will be removed in a future release. use --logLevel info
Start building sites … 
hugo v0.120.1-16fb2cae88eb6add7d12e9fbfcf01d8670e60a35 darwin/amd64 BuildDate=2023-10-30T16:44:31Z VendorInfo=gohugoio

INFO  copy static: syncing static files to /
INFO  build: running step process duration 962.376µs
INFO  build: running step assemble duration 4.712758ms
INFO  build: running step render duration 16.982673ms
INFO  build: running step postProcess duration 8.3µs

                   | EN  
-------------------+-----
  Pages            | 10  
  Paginator pages  |  0  
  Non-page files   |  0  
  Static files     | 43  
  Processed images |  0  
  Aliases          |  1  
  Sitemaps         |  1  
  Cleaned          |  0  

Built in 68 ms
Watching for changes in /Users/mark/GitHub/static-cms-hugo-netlify-template/site/{content,data,layouts,static}
Watching for config changes in /Users/mark/GitHub/static-cms-hugo-netlify-template/site/config.toml
Press Ctrl+C to stop
&amp;lt;i&amp;gt; [webpack-dev-server] Project is running at:
&amp;lt;i&amp;gt; [webpack-dev-server] Loopback: http://localhost:3000/
&amp;lt;i&amp;gt; [webpack-dev-server] On Your Network (IPv4): http://192.168.0.183:3000/
&amp;lt;i&amp;gt; [webpack-dev-server] On Your Network (IPv6): http://[fe80::1]:3000/
&amp;lt;i&amp;gt; [webpack-dev-server] Content not from webpack is served from &#39;/Users/mark/GitHub/static-cms-hugo-netlify-template/dist&#39; directory
&amp;lt;i&amp;gt; [webpack-dev-server] 404s will fallback to &#39;/index.html&#39;
&amp;lt;i&amp;gt; [webpack-dev-middleware] wait until bundle finished: /
assets by path *.js 18.3 MiB
  asset cms.js 18 MiB [emitted] (name: cms)
  asset main.js 300 KiB [emitted] (name: main)
asset main.css 113 KiB [emitted] (name: main)
asset admin/index.html 521 bytes [emitted]
asset fonts/.keep 0 bytes [emitted] [from: src/fonts/.keep] [copied]
Entrypoint main 413 KiB = main.css 113 KiB main.js 300 KiB
Entrypoint cms 18 MiB = cms.js
runtime modules 72.3 KiB 38 modules
modules by path ./node_modules/ 16.9 MiB 82 modules
modules by path ./src/ 133 KiB (javascript) 113 KiB (css/mini-extract)
  modules by path ./src/js/ 15.2 KiB 9 modules
  modules by path ./src/css/*.scss 118 KiB (javascript) 113 KiB (css/mini-extract)
    ./src/css/main.scss 2.78 KiB [built] [code generated]
    ./node_modules/to-string-loader/src/to-string.js!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/css/main.scss 429 bytes [built] [code generated]
    ./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/css/main.scss 332 bytes [built] [code generated]
    + 2 modules
  ./src/index.js 124 bytes [built] [code generated]
asset modules 5.46 KiB
  data:image/png;base64,iVBORw0KGgoAAAAN.. 1.28 KiB [built] [code generated] [build time executed]
  data:image/png;base64,iVBORw0KGgoAAAAN.. 1.33 KiB [built] [code generated] [build time executed]
  data:image/jpeg;base64,/9j/4QAYRXhpZgAA.. 1.55 KiB [built] [code generated] [build time executed]
  data:image/png;base64,iVBORw0KGgoAAAAN.. 1.3 KiB [built] [code generated] [build time executed]
webpack 5.89.0 compiled successfully in 6191 ms
INFO  Received System Events: [CREATE        &amp;quot;/Users/mark/GitHub/static-cms-hugo-netlify-template/site/data/webpack.json&amp;quot; WRITE         &amp;quot;/Users/mark/GitHub/static-cms-hugo-netlify-template/site/data/webpack.json&amp;quot;]

Change detected, rebuilding site.
2024-01-13 10:55:38.259 -0600
Data changed WRITE         &amp;quot;/Users/mark/GitHub/static-cms-hugo-netlify-template/site/data/webpack.json&amp;quot;
Data changed WRITE         &amp;quot;/Users/mark/GitHub/static-cms-hugo-netlify-template/site/data/webpack.json&amp;quot;
INFO  build: running step process duration 114.033µs
INFO  build: running step assemble duration 277ns
INFO  build: running step render duration 6.244639ms
INFO  build: running step postProcess duration 1.831µs
Total in 6 ms
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The demo site is indeed working at &lt;code&gt;http://localhost:3000/&lt;/code&gt; and a vist to &lt;code&gt;http://localhost:3000/admin&lt;/code&gt; does indeed open a &lt;em&gt;StaticCMS&lt;/em&gt; login that&amp;rsquo;s prompting me with the following image.&lt;/p&gt;
&lt;p&gt;&lt;!-- hugo: layouts/_default/_markup/render-image.html --&gt;
&lt;figure&gt;
  &lt;img src=&#34;images/2024/01/Screenshot-2024-01-13-at-11.00.45.png&#34; alt=&#34;Screenshot-2024-01-13-at-11.00.45&#34;&gt;
  &lt;figcaption&gt;&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;!-- /hugo: layouts/_default/_markup/render-image.html --&gt;&lt;/p&gt;
&lt;h3 id=&#34;lets-go-local&#34;&gt;Let&amp;rsquo;s Go Local!&lt;/h3&gt;
&lt;p&gt;Next, I&amp;rsquo;m going to try and switch what we have above to &amp;ldquo;go local&amp;rdquo; using &lt;a href=&#34;https://www.staticcms.org/docs/local-backend&#34;&gt;this guidance&lt;/a&gt; provided in the &lt;em&gt;StaticCMS&lt;/em&gt; documenation.  Fingers crossed for good luck&amp;hellip;&lt;/p&gt;
&lt;h3 id=&#34;eureka-it-works&#34;&gt;Eureka! It Works!&lt;/h3&gt;
&lt;p&gt;So, I made the &lt;code&gt;local_backend&lt;/code&gt; config changes as prescribed in &lt;code&gt;site/static/admin/config.yml&lt;/code&gt; and that file now looks like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;local_backend: 
  # when using a custom proxy server port
  url: http://localhost:8082/api/v1
  # when accessing the local site from a host other than &#39;localhost&#39; or &#39;127.0.0.1&#39;
  allowed_hosts: [&#39;192.168.0.1&#39;]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I also added a new &lt;code&gt;.env&lt;/code&gt; file in the project root directory with a single line reading &lt;code&gt;PORT=8082&lt;/code&gt;, matching the port number specified in the &lt;code&gt;url:&lt;/code&gt; value from &lt;code&gt;config.yml&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Now, with &lt;code&gt;npx @staticcms/proxy-server&lt;/code&gt; running in a local terminal I&amp;rsquo;m able to run &lt;code&gt;npm start&lt;/code&gt; (in my &lt;em&gt;VSCode&lt;/em&gt; terminal) to launch the site at &lt;code&gt;localhost:3000&lt;/code&gt;.  Having done that I&amp;rsquo;m able to visit &lt;code&gt;http://localhost:3000/admin&lt;/code&gt; where I get a new &lt;em&gt;StaticCMS&lt;/em&gt; splash screen with a simple &lt;code&gt;Login&lt;/code&gt; button, not a &lt;em&gt;Netlify&lt;/em&gt; button.  Yay!&lt;/p&gt;
&lt;h3 id=&#34;even-better-news&#34;&gt;Even Better News?&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;StaticCMS&lt;/em&gt; was built from &lt;em&gt;NetlifyCMS&lt;/em&gt; so the &lt;code&gt;site/static/admin/config.yml&lt;/code&gt;.  I think I&amp;rsquo;ll be able to use the &lt;code&gt;collections:&lt;/code&gt; portion of my old &lt;code&gt;admin/config.yml&lt;/code&gt; file from &lt;a href=&#34;https://github.com/SummittDweller/wieting-one-click-hugo-cms&#34;&gt;wieting-one-click-hugo-cms&lt;/a&gt; to get a headstart on setting that up!&lt;/p&gt;
&lt;p&gt;Next step&amp;hellip; let&amp;rsquo;s see if I can drop the &lt;code&gt;site&lt;/code&gt; directory from &lt;a href=&#34;https://github.com/SummittServices/wieting-ss&#34;&gt;wieting-ss&lt;/a&gt; into this local project and still have a functioning local site.  Again, fingers crossed for luck.&lt;/p&gt;
&lt;h1 id=&#34;fresh-restart&#34;&gt;Fresh Restart&lt;/h1&gt;
&lt;p&gt;In order to start fresh I went back to the &lt;a href=&#34;https://github.com/StaticJsCMS/static-cms-hugo-netlify-template&#34;&gt;StaticJsCMS/static-cms-hugo-netlify-template&lt;/a&gt; repo and created a new fork (not a clone) in my &lt;code&gt;Summitt-Services&lt;/code&gt; team space at &lt;a href=&#34;https://github.com/Summitt-Services/static-cms-hugo-local-template&#34;&gt;https://github.com/Summitt-Services/static-cms-hugo-local-template&lt;/a&gt;.  In the new fork I changed the &lt;code&gt;-netlify-&lt;/code&gt; portion of the name to &lt;code&gt;-local-&lt;/code&gt; as this new project is intended to have no &lt;em&gt;Netlify&lt;/em&gt; association, only a &amp;ldquo;local&amp;rdquo; CMS will be supported.&lt;/p&gt;
&lt;p&gt;Next, I cloned the new fork to my workstation and got it working locally again using the same steps I had taken above.&lt;/p&gt;
&lt;h2 id=&#34;copying-wieting-ss-to-static-cms-hugo-local-template&#34;&gt;Copying &lt;code&gt;wieting-ss&lt;/code&gt; to &lt;code&gt;static-cms-hugo-local-template&lt;/code&gt;&lt;/h2&gt;
&lt;p&gt;For safe-keeping I created a new branch named &lt;code&gt;wieting&lt;/code&gt; in &lt;code&gt;~/GitHub/static-cms-hugo-local-template&lt;/code&gt; where I did this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template ‹wieting*› 
╰─$ rsync -aruvi ../wieting-ss/. site/.
...
&amp;gt;f++++++++++ themes/vanilla-bootstrap-hugo-theme/static/js/checkTweetDate.js
&amp;gt;f++++++++++ themes/vanilla-bootstrap-hugo-theme/static/js/feather.min.js
&amp;gt;f++++++++++ themes/vanilla-bootstrap-hugo-theme/static/js/jquery-3.3.1.slim.min.js

sent 282,877,469 bytes  received 470,944 bytes  9,605,030.95 bytes/sec
total size is 470,527,158  speedup is 1.66
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Will it work?  Let&amp;rsquo;s see&amp;hellip; NOPE.  It does produce a site but the old &amp;ldquo;Kaldi&amp;rdquo; content is still all I see.  I even changed the &lt;code&gt;backend.branch:&lt;/code&gt; value from &lt;code&gt;main&lt;/code&gt; to &lt;code&gt;wieting&lt;/code&gt;, but that did nothing.  So, I&amp;rsquo;ve captured the output here so that I can have a look at what&amp;rsquo;s happening.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template ‹wieting*› 
╰─$ npm start                               

&amp;gt; static-cms-hugo-netlify-template@1.0.0 start
&amp;gt; run-p start:**


&amp;gt; static-cms-hugo-netlify-template@1.0.0 start:webpack
&amp;gt; webpack-dev-server --config webpack.dev.js --hot --stats-error-details


&amp;gt; static-cms-hugo-netlify-template@1.0.0 start:hugo
&amp;gt; hugo -d ../dist -s site -vw

WARN  --verbose was deprecated in Hugo v0.114.0 and will be removed in a future release. use --logLevel info
Start building sites … 
hugo v0.120.1-16fb2cae88eb6add7d12e9fbfcf01d8670e60a35 darwin/amd64 BuildDate=2023-10-30T16:44:31Z VendorInfo=gohugoio

INFO  copy static: syncing static files to /
INFO  build: running step process duration 4.236952ms
INFO  build: running step assemble duration 13.684119ms
WARN  found no layout file for &amp;quot;json&amp;quot; for kind &amp;quot;section&amp;quot;: You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
INFO  build: running step render duration 58.753135ms
INFO  build: running step postProcess duration 8.744µs

                   | EN   
-------------------+------
  Pages            |  66  
  Paginator pages  |   7  
  Non-page files   |   0  
  Static files     | 541  
  Processed images |   0  
  Aliases          |   7  
  Sitemaps         |   1  
  Cleaned          |   0  

Built in 579 ms
Watching for changes in /Users/mark/GitHub/static-cms-hugo-local-template/site/{archetypes,content,data,layouts,package.json,static,themes}
Watching for config changes in /Users/mark/GitHub/static-cms-hugo-local-template/site/config.toml, /Users/mark/GitHub/static-cms-hugo-local-template/site/config/_default
Press Ctrl+C to stop
&amp;lt;i&amp;gt; [webpack-dev-server] Project is running at:
&amp;lt;i&amp;gt; [webpack-dev-server] Loopback: http://localhost:3000/
&amp;lt;i&amp;gt; [webpack-dev-server] On Your Network (IPv4): http://192.168.0.183:3000/
&amp;lt;i&amp;gt; [webpack-dev-server] On Your Network (IPv6): http://[fe80::1]:3000/
&amp;lt;i&amp;gt; [webpack-dev-server] Content not from webpack is served from &#39;/Users/mark/GitHub/static-cms-hugo-local-template/dist&#39; directory
&amp;lt;i&amp;gt; [webpack-dev-server] 404s will fallback to &#39;/index.html&#39;
&amp;lt;i&amp;gt; [webpack-dev-middleware] wait until bundle finished: /
assets by path *.js 18.3 MiB
  asset cms.js 18 MiB [emitted] (name: cms)
  asset main.js 300 KiB [emitted] (name: main)
asset main.css 113 KiB [emitted] (name: main)
asset admin/index.html 521 bytes [emitted]
asset fonts/.keep 0 bytes [emitted] [from: src/fonts/.keep] [copied]
Entrypoint main 413 KiB = main.css 113 KiB main.js 300 KiB
Entrypoint cms 18 MiB = cms.js
runtime modules 72.3 KiB 38 modules
modules by path ./node_modules/ 16.9 MiB 82 modules
modules by path ./src/ 133 KiB (javascript) 113 KiB (css/mini-extract)
  modules by path ./src/js/ 15.2 KiB 9 modules
  modules by path ./src/css/*.scss 118 KiB (javascript) 113 KiB (css/mini-extract)
    ./src/css/main.scss 2.78 KiB [built] [code generated]
    ./node_modules/to-string-loader/src/to-string.js!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/css/main.scss 429 bytes [built] [code generated]
    ./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/css/main.scss 332 bytes [built] [code generated]
    + 2 modules
  ./src/index.js 124 bytes [built] [code generated]
asset modules 5.46 KiB
  data:image/png;base64,iVBORw0KGgoAAAAN.. 1.28 KiB [built] [code generated] [build time executed]
  data:image/png;base64,iVBORw0KGgoAAAAN.. 1.33 KiB [built] [code generated] [build time executed]
  data:image/jpeg;base64,/9j/4QAYRXhpZgAA.. 1.55 KiB [built] [code generated] [build time executed]
  data:image/png;base64,iVBORw0KGgoAAAAN.. 1.3 KiB [built] [code generated] [build time executed]
webpack 5.89.0 compiled successfully in 5563 ms
INFO  Received System Events: [CHMOD         &amp;quot;/Users/mark/GitHub/static-cms-hugo-local-template/site/data/webpack.json&amp;quot; WRITE         &amp;quot;/Users/mark/GitHub/static-cms-hugo-local-template/site/data/webpack.json&amp;quot;]

Change detected, rebuilding site.
2024-01-13 13:15:08.329 -0600
Data changed WRITE         &amp;quot;/Users/mark/GitHub/static-cms-hugo-local-template/site/data/webpack.json&amp;quot;
INFO  build: running step process duration 186.604µs
INFO  build: running step assemble duration 244ns
WARN  found no layout file for &amp;quot;json&amp;quot; for kind &amp;quot;section&amp;quot;: You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
INFO  build: running step render duration 31.514265ms
INFO  build: running step postProcess duration 7.661µs
Total in 31 ms
^C&amp;lt;i&amp;gt; [webpack-dev-server] Gracefully shutting down. To force exit, press ^C again. Please wait...
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;corrections-needed&#34;&gt;Corrections Needed&lt;/h2&gt;
&lt;p&gt;So, the first thing I see here is that the new &lt;code&gt;site&lt;/code&gt; directory contains the template&amp;rsquo;s &lt;code&gt;content/_index.md&lt;/code&gt; file which naturally becomes the site&amp;rsquo;s home page.  It contains only &amp;ldquo;Kaldi&amp;rdquo; content. So I tried removing that &lt;code&gt;_index.md&lt;/code&gt; file and that changed the home page &amp;ldquo;title&amp;rdquo;, but very little else.&lt;/p&gt;
&lt;p&gt;I think returing to the &lt;code&gt;main&lt;/code&gt; branch of this project and starting over again but using only the content of &lt;code&gt;wieting-ss&lt;/code&gt; in the new &lt;code&gt;site/&lt;/code&gt; directory might be wise.  I did it like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;╭─mark@Marks-Mac-Mini ~/GitHub
╰─$ rm -fr static-cms-hugo-local-template
╭─mark@Marks-Mac-Mini ~/GitHub
╰─$ git clone https://github.com/Summitt-Services/static-cms-hugo-local-template.git
Cloning into &#39;static-cms-hugo-local-template&#39;...
remote: Enumerating objects: 574, done.
remote: Counting objects: 100% (155/155), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 574 (delta 122), reused 125 (delta 102), pack-reused 419
Receiving objects: 100% (574/574), 22.14 MiB | 23.94 MiB/s, done.
Resolving deltas: 100% (248/248), done.
╭─mark@Marks-Mac-Mini ~/GitHub
╰─$ cd static-cms-hugo-local-template
╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template ‹main›
╰─$ cp -fr site/static/admin ~
╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template ‹main›
╰─$ rm -fr site
╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template ‹main*›
╰─$ mkdir site
╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template ‹main*›
╰─$ cp -fr ../wieting-ss/. site/.
╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template ‹main*›
╰─$ cp -f ~/admin/config.yml site/static/admin/.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Next I launched the proxy server like so:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template ‹main*›
╰─$ npx @staticcms/proxy-server
info: Static CMS File System Proxy Server configured with /Users/mark/GitHub/static-cms-hugo-local-template
info: Static CMS Proxy Server listening on port 8082
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then in my &lt;em&gt;VSCode&lt;/em&gt; terminal this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template ‹main*› 
╰─$ npm start

&amp;gt; static-cms-hugo-netlify-template@1.0.0 start
&amp;gt; run-p start:**


&amp;gt; static-cms-hugo-netlify-template@1.0.0 start:webpack
&amp;gt; webpack-dev-server --config webpack.dev.js --hot --stats-error-details


&amp;gt; static-cms-hugo-netlify-template@1.0.0 start:hugo
&amp;gt; hugo -d ../dist -s site -vw

WARN  --verbose was deprecated in Hugo v0.114.0 and will be removed in a future release. use --logLevel info
Start building sites … 
hugo v0.120.1-16fb2cae88eb6add7d12e9fbfcf01d8670e60a35 darwin/amd64 BuildDate=2023-10-30T16:44:31Z VendorInfo=gohugoio

INFO  copy static: syncing static files to /
INFO  build: running step process duration 3.193622ms
INFO  build: running step assemble duration 25.748629ms
WARN  found no layout file for &amp;quot;json&amp;quot; for kind &amp;quot;section&amp;quot;: You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
INFO  build: running step render duration 70.992512ms
INFO  build: running step postProcess duration 9.94µs
&amp;lt;i&amp;gt; [webpack-dev-server] Project is running at:
&amp;lt;i&amp;gt; [webpack-dev-server] Loopback: http://localhost:3000/
&amp;lt;i&amp;gt; [webpack-dev-server] On Your Network (IPv4): http://192.168.0.183:3000/
&amp;lt;i&amp;gt; [webpack-dev-server] On Your Network (IPv6): http://[fe80::1]:3000/
&amp;lt;i&amp;gt; [webpack-dev-server] Content not from webpack is served from &#39;/Users/mark/GitHub/static-cms-hugo-local-template/dist&#39; directory
&amp;lt;i&amp;gt; [webpack-dev-server] 404s will fallback to &#39;/index.html&#39;

                   | EN   
-------------------+------
  Pages            |  57  
  Paginator pages  |   0  
  Non-page files   |   0  
  Static files     | 499  
  Processed images |   0  
  Aliases          |   1  
  Sitemaps         |   1  
  Cleaned          |   0  

Built in 1034 ms
Watching for changes in /Users/mark/GitHub/static-cms-hugo-local-template/site/{archetypes,content,layouts,package.json,static,themes}
Watching for config changes in /Users/mark/GitHub/static-cms-hugo-local-template/site/config/_default
Press Ctrl+C to stop
&amp;lt;i&amp;gt; [webpack-dev-middleware] wait until bundle finished: /
assets by path *.js 18.3 MiB
  asset cms.js 18 MiB [emitted] (name: cms)
  asset main.js 300 KiB [emitted] (name: main)
asset main.css 113 KiB [emitted] (name: main)
asset admin/index.html 521 bytes [emitted]
asset fonts/.keep 0 bytes [emitted] [from: src/fonts/.keep] [copied]
Entrypoint main 413 KiB = main.css 113 KiB main.js 300 KiB
Entrypoint cms 18 MiB = cms.js
runtime modules 72.3 KiB 38 modules
modules by path ./node_modules/ 16.9 MiB 82 modules
modules by path ./src/ 133 KiB (javascript) 113 KiB (css/mini-extract)
  modules by path ./src/js/ 15.2 KiB 9 modules
  modules by path ./src/css/*.scss 118 KiB (javascript) 113 KiB (css/mini-extract)
    ./src/css/main.scss 2.78 KiB [built] [code generated]
    ./node_modules/to-string-loader/src/to-string.js!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/css/main.scss 429 bytes [built] [code generated]
    ./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/css/main.scss 332 bytes [built] [code generated]
    + 2 modules
  ./src/index.js 124 bytes [built] [code generated]
asset modules 5.46 KiB
  data:image/png;base64,iVBORw0KGgoAAAAN.. 1.28 KiB [built] [code generated] [build time executed]
  data:image/png;base64,iVBORw0KGgoAAAAN.. 1.33 KiB [built] [code generated] [build time executed]
  data:image/jpeg;base64,/9j/4QAYRXhpZgAA.. 1.55 KiB [built] [code generated] [build time executed]
  data:image/png;base64,iVBORw0KGgoAAAAN.. 1.3 KiB [built] [code generated] [build time executed]
webpack 5.89.0 compiled successfully in 6771 ms
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Again, it works.  Only this time the Wieting website appears at &lt;a href=&#34;http://localhost:3000&#34;&gt;http://localhost:3000&lt;/a&gt; and &lt;a href=&#34;http://localhost:3000/admin&#34;&gt;http://localhost:3000/admin&lt;/a&gt; works too, but with the wrong configuration.  Still, that&amp;rsquo;s a WIN!&lt;/p&gt;
&lt;h2 id=&#34;time-to-save-my-progress&#34;&gt;Time To Save My Progress&lt;/h2&gt;
&lt;p&gt;I really don&amp;rsquo;t want to dump 4000+ new files, many of them specific to the Wieting website, into my pristine (and working) &lt;a href=&#34;https://github.com/Summitt-Services/static-cms-hugo-local-template&#34;&gt;https://github.com/Summitt-Services/static-cms-hugo-local-template&lt;/a&gt; GitHub repository.  So, I&amp;rsquo;m going to clean up my local project by removing that which is no longer needed, and then I&amp;rsquo;m going to remove the &lt;code&gt;.git&lt;/code&gt; directory and create/populate a new &lt;a href=&#34;https://github.com/SummittDweller/wieting-staticCMS&#34;&gt;wieting-staticCMS&lt;/a&gt; private repository.  After creating that empty repository the process looked like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template ‹main*› 
╰─$ rm -fr site/.git 
╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template ‹main*› 
╰─$ rm -fr .git
╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template 
╰─$ git init
Initialized empty Git repository in /Users/mark/GitHub/static-cms-hugo-local-template/.git/
╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template 
╰─$ git add .
╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template 
╰─$ git commit -m &amp;quot;first commit&amp;quot;
╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template 
╰─$ git branch -M main
╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template 
╰─$ git remote add origin https://github.com/SummittDweller/wieting-staticCMS.git
╭─mark@Marks-Mac-Mini ~/GitHub/static-cms-hugo-local-template 
╰─$ git push -u origin main
...
Enumerating objects: 2979, done.
Counting objects: 100% (2979/2979), done.
Delta compression using up to 6 threads
Compressing objects: 100% (2855/2855), done.
Writing objects: 100% (2979/2979), 95.87 MiB | 2.65 MiB/s, done.
Total 2979 (delta 638), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (638/638), done.
To https://github.com/SummittDweller/wieting-staticCMS.git
 * [new branch]      main -&amp;gt; main
branch &#39;main&#39; set up to track &#39;origin/main&#39;.
&lt;/code&gt;&lt;/pre&gt;
&lt;h1 id=&#34;wieting-staticcms&#34;&gt;wieting-staticCMS&lt;/h1&gt;
&lt;p&gt;With the new GitHub repo in place let&amp;rsquo;s take it for a local spin.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;╭─mark@Marks-Mac-Mini ~/GitHub
╰─$ git clone https://github.com/SummittDweller/wieting-staticCMS.git
Cloning into &#39;wieting-staticCMS&#39;...
remote: Enumerating objects: 2979, done.
remote: Total 2979 (delta 0), reused 0 (delta 0), pack-reused 2979
Receiving objects: 100% (2979/2979), 95.87 MiB | 26.77 MiB/s, done.
Resolving deltas: 100% (638/638), done.
Updating files: 100% (4834/4834), done.
╭─mark@Marks-Mac-Mini ~/GitHub
╰─$ cd wieting-staticCMS
╭─mark@Marks-Mac-Mini ~/GitHub/wieting-staticCMS ‹main›
╰─$ npm install
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.

added 1567 packages, and audited 1568 packages in 1m

426 packages are looking for funding
  run `npm fund` for details

2 moderate severity vulnerabilities

To address all issues, run:
  npm audit fix

Run `npm audit` for details.
╭─mark@Marks-Mac-Mini ~/GitHub/wieting-staticCMS ‹main›
╰─$ npx @staticcms/proxy-server
info: Static CMS File System Proxy Server configured with /Users/mark/GitHub/wieting-staticCMS
info: Static CMS Proxy Server listening on port 8082
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then, in a differnt terminal window&amp;hellip;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;╭─mark@Marks-Mac-Mini ~/GitHub/wieting-staticCMS ‹main›
╰─$ npm start

&amp;gt; static-cms-hugo-netlify-template@1.0.0 start
&amp;gt; run-p start:**


&amp;gt; static-cms-hugo-netlify-template@1.0.0 start:hugo
&amp;gt; hugo -d ../dist -s site -vw


&amp;gt; static-cms-hugo-netlify-template@1.0.0 start:webpack
&amp;gt; webpack-dev-server --config webpack.dev.js --hot --stats-error-details

WARN  --verbose was deprecated in Hugo v0.114.0 and will be removed in a future release. use --logLevel info
Start building sites …
hugo v0.120.1-16fb2cae88eb6add7d12e9fbfcf01d8670e60a35 darwin/amd64 BuildDate=2023-10-30T16:44:31Z VendorInfo=gohugoio

INFO  copy static: syncing static files to /
INFO  build: running step process duration 3.975463ms
INFO  build: running step assemble duration 19.211854ms
WARN  found no layout file for &amp;quot;json&amp;quot; for kind &amp;quot;section&amp;quot;: You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
INFO  build: running step render duration 54.091014ms
INFO  build: running step postProcess duration 8.597µs

                   | EN
-------------------+------
  Pages            |  57
  Paginator pages  |   0
  Non-page files   |   0
  Static files     | 499
  Processed images |   0
  Aliases          |   1
  Sitemaps         |   1
  Cleaned          |   0

Built in 717 ms
Watching for changes in /Users/mark/GitHub/wieting-staticCMS/site/{archetypes,content,layouts,package.json,static,themes}
Watching for config changes in /Users/mark/GitHub/wieting-staticCMS/site/config/_default
Press Ctrl+C to stop
&amp;lt;i&amp;gt; [webpack-dev-server] Project is running at:
&amp;lt;i&amp;gt; [webpack-dev-server] Loopback: http://localhost:3000/
&amp;lt;i&amp;gt; [webpack-dev-server] On Your Network (IPv4): http://192.168.0.183:3000/
&amp;lt;i&amp;gt; [webpack-dev-server] On Your Network (IPv6): http://[fe80::1]:3000/
&amp;lt;i&amp;gt; [webpack-dev-server] Content not from webpack is served from &#39;/Users/mark/GitHub/wieting-staticCMS/dist&#39; directory
&amp;lt;i&amp;gt; [webpack-dev-server] 404s will fallback to &#39;/index.html&#39;
&amp;lt;i&amp;gt; [webpack-dev-middleware] wait until bundle finished: /
assets by path *.js 18.3 MiB
  asset cms.js 18 MiB [emitted] (name: cms)
  asset main.js 300 KiB [emitted] (name: main)
asset main.css 113 KiB [emitted] (name: main)
asset admin/index.html 521 bytes [emitted]
asset fonts/.keep 0 bytes [emitted] [from: src/fonts/.keep] [copied]
Entrypoint main 413 KiB = main.css 113 KiB main.js 300 KiB
Entrypoint cms 18 MiB = cms.js
runtime modules 72.3 KiB 38 modules
modules by path ./node_modules/ 16.9 MiB 82 modules
modules by path ./src/ 133 KiB (javascript) 113 KiB (css/mini-extract)
  modules by path ./src/js/ 15.2 KiB 9 modules
  modules by path ./src/css/*.scss 118 KiB (javascript) 113 KiB (css/mini-extract)
    ./src/css/main.scss 2.78 KiB [built] [code generated]
    ./node_modules/to-string-loader/src/to-string.js!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/css/main.scss 429 bytes [built] [code generated]
    ./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[2].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/css/main.scss 332 bytes [built] [code generated]
    + 2 modules
  ./src/index.js 124 bytes [built] [code generated]
asset modules 5.46 KiB
  data:image/png;base64,iVBORw0KGgoAAAAN.. 1.28 KiB [built] [code generated] [build time executed]
  data:image/png;base64,iVBORw0KGgoAAAAN.. 1.33 KiB [built] [code generated] [build time executed]
  data:image/jpeg;base64,/9j/4QAYRXhpZgAA.. 1.55 KiB [built] [code generated] [build time executed]
  data:image/png;base64,iVBORw0KGgoAAAAN.. 1.3 KiB [built] [code generated] [build time executed]
webpack 5.89.0 compiled successfully in 6051 ms
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And again, &lt;strong&gt;IT WORKS!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Time to merge the old CMS config from &lt;code&gt;site/static/.admin-netlify/config.yml&lt;/code&gt; into the new config at &lt;code&gt;site/static/admin/config.yml&lt;/code&gt;.   Then a few changes will be needed since the site&amp;rsquo;s content structure has changed somewhat from the old days.  &lt;/p&gt;
</description>
      </item>
      
    
  </channel>
</rss>
