Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Fix deployments #69

Merged
merged 3 commits into from
Jun 1, 2016
Merged

Fix deployments #69

merged 3 commits into from
Jun 1, 2016

Conversation

rogeruiz
Copy link
Contributor

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 of hugo 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 the npm config to establish some repeatable environmental variables. You can find out more about that here.

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
Copy link
Contributor Author

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.

@rogeruiz
Copy link
Contributor Author

rogeruiz commented Jun 1, 2016

@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": {
Copy link
Contributor

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

Copy link
Contributor Author

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 👀

@rogeruiz
Copy link
Contributor Author

rogeruiz commented Jun 1, 2016

Do you want to open a ticket based issue on your third suggestion around using gulp tasks use the environment variables? @yozlet

@yozlet
Copy link
Contributor

yozlet commented Jun 1, 2016

Done, in #73. Meanwhile, let's get this out there. 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants