theNewDynamic / mfocus-tracking

1 stars 1 forks source link

Migrate missionfocus.com from Jekyll to Hugo #6

Closed budparr closed 3 years ago

budparr commented 4 years ago

As per #1 we will move the site from Jekyll to Hugo, leaving design in place.

This seems like it should be multiple issues, but I'm not sure what they would be

regisphilibert commented 4 years ago

@andreweick I created a temporary repo for the port, (when all is green lit we'll copy the files over to the original repo).

You can check the front of the site built by Hugo here: https://tnd-mf-hugo.netlify.app/

The only problems I found are matching those found in production, but you know the site way better than I do, so feel free to browser through it and shout if something is amiss!

Thanks a ton!

andreweick commented 4 years ago

@regisphilibert look great!

regisphilibert commented 3 years ago

@andreweick I will now create a branch on your repo with the hugo port. Let's not merge it right away. We can keep talking on the PR I'll open from there.

regisphilibert commented 3 years ago

@andreweick it appears I don't have writing permission (for creating a branch) on the repo.

andreweick commented 3 years ago

@regisphilibert fixed

regisphilibert commented 3 years ago

@andreweick I created the branch. We could merge when you're ready. Afterwards we'll get to the other issues on this site.

andreweick commented 3 years ago

@regisphilibert looks great to me, I didn't notice anything off -- send a PR when ready...

andreweick commented 3 years ago

@regisphilibert netlify seems to be failing the build -- I 'reset' the parameters to be "Hugo" rather than "Jekyll" (although it seems the netlify.toml over ride that setting anyway).

Log below

12:58:43 PM: Build ready to start
12:58:45 PM: build-image version: 8e315e54bc4032a32e73290be556cde4f8348c12
12:58:45 PM: build-image tag: v2.8.2
12:58:45 PM: buildbot version: 45cd00068410d70db72c9672cdd014995488e12a
12:58:45 PM: Fetching cached dependencies
12:58:45 PM: Starting to download cache of 254.8KB
12:58:45 PM: Finished downloading cache in 100.173835ms
12:58:45 PM: Starting to extract cache
12:58:45 PM: Failed to fetch cache, continuing with build
12:58:45 PM: Starting to prepare the repo for build
12:58:46 PM: No cached dependencies found. Cloning fresh repo
12:58:46 PM: git clone https://github.com/missionfocus/www.missionfocus.com
12:58:50 PM: Preparing Git Reference refs/heads/master
12:58:51 PM: Found netlify.toml. Overriding site configuration
12:58:51 PM: Different build command detected, going to use the one specified in the toml file: 'hugo --minify -b $DEPLOY_URL' versus 'hugo' in the site
12:58:51 PM: Starting build script
12:58:51 PM: Installing dependencies
12:58:55 PM: Downloading and installing node v10.13.0...
12:58:55 PM: Downloading https://nodejs.org/dist/v10.13.0/node-v10.13.0-linux-x64.tar.xz...
12:58:55 PM: 
####################                                                      28.1%
12:58:55 PM: #
12:58:55 PM: #
12:58:55 PM: #
12:58:55 PM: #
12:58:55 PM: #
12:58:55 PM: #
12:58:55 PM: #
12:58:55 PM: #
12:58:55 PM: #
12:58:55 PM: #
12:58:55 PM: #
12:58:55 PM: #
12:58:55 PM: #######
12:58:55 PM: #########################################
12:58:55 PM: ############
12:58:55 PM: 100.0%
12:58:55 PM: Computing checksum with sha256sum
12:58:56 PM: Checksums matched!
12:58:58 PM: Now using node v10.13.0 (npm v6.4.1)
12:58:58 PM: Attempting ruby version 2.7.1, read from environment
12:58:59 PM: 
12:58:59 PM: ** WARNING **
12:58:59 PM: Using custom ruby version 2.7.1, this will slow down the build.
12:58:59 PM: To ensure fast builds, set the RUBY_VERSION environment variable, or .ruby-version file, to an included ruby version.
12:58:59 PM: Included versions: 2.5.4 2.2.9 2.4.3 2.6.2 2.4.5 2.3.6
12:58:59 PM: 
12:58:59 PM: Required ruby-2.7.1 is not installed - installing.
12:58:59 PM: Searching for binary rubies, this might take some time.
12:59:00 PM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/14.04/x86_64/ruby-2.7.1.tar.bz2
12:59:00 PM: Checking requirements for ubuntu.
12:59:00 PM: Requirements installation successful.
12:59:01 PM: ruby-2.7.1 - #configure
12:59:01 PM: ruby-2.7.1 - #download
12:59:01 PM: No checksum for downloaded archive, recording checksum in user configuration.
12:59:02 PM: ruby-2.7.1 - #validate archive
12:59:07 PM: ruby-2.7.1 - #extract
12:59:10 PM: ruby-2.7.1 - #validate binary
12:59:11 PM: ruby-2.7.1 - #setup
12:59:12 PM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1@global
12:59:12 PM: ruby-2.7.1 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems
12:59:12 PM: ........................................
12:59:12 PM: ruby-2.7.1 - #generating global wrappers
12:59:12 PM: .......
12:59:12 PM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1
12:59:12 PM: ruby-2.7.1 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
12:59:12 PM: ruby-2.7.1 - #generating default wrappers
12:59:13 PM: .......
12:59:13 PM: Using /opt/buildhome/.rvm/gems/ruby-2.7.1
12:59:14 PM: Using ruby version 2.7.1
12:59:14 PM: Using PHP version 5.6
12:59:14 PM: Started restoring cached node modules
12:59:14 PM: Finished restoring cached node modules
12:59:14 PM: Installing NPM modules using NPM version 6.4.1
12:59:16 PM: added 6 packages from 4 contributors and audited 6 packages in 1.356s
12:59:16 PM: found 3 vulnerabilities (2 moderate, 1 high)
12:59:16 PM:   run `npm audit fix` to fix them, or `npm audit` for details
12:59:17 PM: NPM modules installed
12:59:18 PM: Installing Hugo 0.73.0
12:59:20 PM: Hugo Static Site Generator v0.73.0-428907CC linux/amd64 BuildDate: 2020-06-23T16:30:43Z
12:59:20 PM: Started restoring cached go cache
12:59:20 PM: Finished restoring cached go cache
12:59:20 PM: Installing Go version 1.14
12:59:30 PM: unset GOOS;
12:59:30 PM: unset GOARCH;
12:59:30 PM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.14.linux.amd64';
12:59:30 PM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.14.linux.amd64/bin:${PATH}";
12:59:30 PM: go version >&2;
12:59:30 PM: export GIMME_ENV="/opt/buildhome/.gimme_cache/env/go1.14.linux.amd64.env"
12:59:30 PM: go version go1.14 linux/amd64
12:59:30 PM: Installing missing commands
12:59:30 PM: Verify run directory
12:59:30 PM: Executing user command: hugo --minify -b $DEPLOY_URL
12:59:32 PM: hugo: downloading modules …
12:59:33 PM: hugo: collected modules in 2852 ms
12:59:33 PM: Building sites …
12:59:33 PM: Total in 2956 ms
12:59:33 PM: Error: Error building site: TOCSS: failed to transform "sass/screen.scss" (text/x-scss): resource "scss/sass/screen.scss_3541d76fef6b96d309602fda35d08996" not found in file cache
12:59:33 PM: Skipping functions preparation step: no functions directory set
12:59:33 PM: Caching artifacts
12:59:33 PM: Started saving node modules
12:59:33 PM: Finished saving node modules
12:59:33 PM: Started saving pip cache
12:59:33 PM: Finished saving pip cache
12:59:33 PM: Started saving emacs cask dependencies
12:59:33 PM: Finished saving emacs cask dependencies
12:59:33 PM: Started saving maven dependencies
12:59:33 PM: Finished saving maven dependencies
12:59:33 PM: Started saving boot dependencies
12:59:33 PM: Finished saving boot dependencies
12:59:33 PM: Started saving go dependencies
12:59:35 PM: Finished saving go dependencies
12:59:58 PM: Cached ruby version 2.7.1
12:59:58 PM: Error running command: Build script returned non-zero exit code: 255
12:59:58 PM: Failing build: Failed to build site
12:59:58 PM: failed during stage 'building site': Build script returned non-zero exit code: 255
12:59:58 PM: Finished processing build request in 1m12.806007957s
regisphilibert commented 3 years ago

Can you try again clearing the cache?

andreweick commented 3 years ago

@regisphilibert I did 'clear cache and redeploy' (same error) -- should I try and delete the whole site and re-add to netlify?

regisphilibert commented 3 years ago

It's weird... you shouldn't have to... I'll try something else.

regisphilibert commented 3 years ago

@andreweick I tried a few things, it's hard as I am blind to the Netlify Dashboard. I'm not sure what's going on as this was working as a branch on the instance we had created (fresh though it's true).

andreweick commented 3 years ago

@regisphilibert yeah, computers suck.

Does this seem correct?

2:44:48 PM: Error: Error building site: TOCSS: failed to transform "sass/screen.scss" (text/x-scss): resource "scss/sass/screen.scss_3541d76fef6b96d309602fda35d08996" not found in file cache
2:44:48 PM: Skipping functions preparation step: no functions directory set

that seems to be the first error.

if you don't see anything obvious I'll delete and re-add from scratch. @budparr and I set this up in 2018 so who knows what dragons there be...

regisphilibert commented 3 years ago

That's the line causing the problem. And I'm sorry it took me so long to understand the problem. I suppose your setup is indeed too old and does not install Hugo Extendend (which we need for the Sass to be processed).

@andreweick could you go in Netlify > Deploy > Conitnuous Deployment > Build Image and choose the latest which should be Ubuntu Xenial 16.04. It's the default one on new sites, but yours is not.

andreweick commented 3 years ago

@regisphilibert DONE!

🤙

regisphilibert commented 3 years ago

Awesome!