Skip to content

Commit

Permalink
add error logging for cloug.gov pages
Browse files Browse the repository at this point in the history
  • Loading branch information
RileySeaburg committed Nov 12, 2024
1 parent 9974810 commit 44ee365
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Guidance for making a better digital government",
"main": "gulpfile.js",
"scripts": {
"federalist": "npm install && npm run mount-s3 && export NODE_ENV=production && gulp buildAssets",
"federalist": "(echo \"[Log $(date '+%Y-%m-%d %H:%M:%S')] Starting federalist build...\" && npm install && echo \"[Log $(date '+%Y-%m-%d %H:%M:%S')] npm install completed successfully.\" || { echo \"[Error $(date '+%Y-%m-%d %H:%M:%S')] npm install failed! Check dependency configurations and network connectivity.\" >&2; exit 1; }) && (echo \"[Log $(date '+%Y-%m-%d %H:%M:%S')] Running mount-s3...\" && npm run mount-s3 && echo \"[Log $(date '+%Y-%m-%d %H:%M:%S')] mount-s3 completed successfully.\" || { echo \"[Error $(date '+%Y-%m-%d %H:%M:%S')] mount-s3 failed! Verify S3 configuration and credentials.\" >&2; exit 1; }) && (echo \"[Log $(date '+%Y-%m-%d %H:%M:%S')] Setting environment to production...\" && export NODE_ENV=production && echo \"[Log $(date '+%Y-%m-%d %H:%M:%S')] NODE_ENV set to production.\") && (echo \"[Log $(date '+%Y-%m-%d %H:%M:%S')] Running gulp buildAssets...\" && gulp buildAssets && echo \"[Log $(date '+%Y-%m-%d %H:%M:%S')] gulp buildAssets completed successfully.\" || { echo \"[Error $(date '+%Y-%m-%d %H:%M:%S')] gulp buildAssets failed! Check Gulp tasks and source files.\" >&2; exit 1; })",
"hugo": "export $(grep -v '^#' .env | xargs) && hugo serve --bind='0.0.0.0'",
"lint:json": "find public/**/v1/json/index.json -print0 | xargs -0I {} jsonlint '{}'",
"lint:js": "eslint './themes/digital.gov/src/js/*.js' './config/typescript/**/*.ts'",
Expand Down
1 change: 1 addition & 0 deletions themes/digital.gov/layouts/shortcodes/img.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
{{ $imageClasses = $imageClasses | append "image-center" }}
{{ end }}


<div class="{{ delimit $imageClasses " " }}">
{{/* If image not found in data or is external URL, use direct src */}}
{{- if or (not $thisimg) (ne $prefix $thisuid) -}}
Expand Down

0 comments on commit 44ee365

Please sign in to comment.