-
Notifications
You must be signed in to change notification settings - Fork 42
Conversation
This patch removes the redundant `config_en.toml` file and adds the `lang="*"` property that was missing from the `config.toml`. When this property is missing from any config files, it causes `viper` the library that `hugo` uses to process config files to throw an unlabeled / unhelpful exception.
- cf login -a https://api.cloud.gov -u $CF_GSA_VOTE_USER -p $CF_GSA_VOTE_PASS -o gsa-ffd -s vote-production | ||
- cf push | ||
staging: | ||
branch: [staging] | ||
commands: | ||
- echo "CURRENTLY ONLY BUILDING SINGLE LANGUAGE SITE" | ||
- SITE_BASEURL="$CF_GSA_VOTE_STAGING_URL" gulp build:website | ||
- npm run build:staging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have both CircleCI
deployments leverage the new npm run
scripts.
@yozlet Updated with the changes I mentioned above 👍 |
"en": { | ||
"staging": "https://vote-gov-staging.apps.cloud.gov/", | ||
"production": "https://vote-gov.apps.cloud.gov/" | ||
"votgov": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you have a typo here - should be votegov
(which you've used in the vars below), not votgov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fixed @yozlet Good 👀
Do you want to open |
Done, in #73. Meanwhile, let's get this out there. 👍 |
When #33 landed, it broke the deployments because of a
go panic
caused with Hugo. I opened a ticket here gohugoio/hugo#2174 to alert the maintainers ofhugo
about the problem. I will outline in the PR what I did to fix it.This patch series also includes some refactoring of the
npm run
scripts along with leveraging thenpm config
to establish some repeatable environmental variables. You can find out more about that here.