Skip to content

Simple GO program to download razor pages from visible directory (and sub directories) and save to disk doing some text replacemnet

Notifications You must be signed in to change notification settings

pgmoir/cms-compare

Repository files navigation

cms-compare

This go language console application is used to download and parse Transport for London CMS files, so that they can be compared (manually) with the versions that are in source code.

The source code versions although deployed in the pipeline, and immediately overwritten by a CMS release in any deployment. Therefore, the code team use the 'draft' versions and in test continue to see the draft versions. When code is deployed to live or pre-live environments the live versions of CMS are also deployed.

Run command includes option parameter 0, 1, 2 or 3 at end.

0 and 2 should be used to download CMS for TFL web (draft and live respectively)

1 and 3 should be used to download CMS for RUC web (draft and live repsectively)

4 and 5 should be used to download CMS not html content for RUC web (draft and live respectively)

go run runconcurrent.go log.go 1

URLS used for options

#0 https://cms.hub.tfl.gov.uk/published/draft-templates/draft-content/views/cms/

#1 https://cms.hub.tfl.gov.uk/published/LRUC/draft-templates/draft-content/views/cms/modes/driving/

#2 https://cms.hub.tfl.gov.uk/published/live-templates/live-content/views/cms/

#3 https://cms.hub.tfl.gov.uk/published/LRUC/live-templates/live-content/views/cms/modes/driving/

#4 https://cms.hub.tfl.gov.uk/published/LRUC/draft-templates/draft-content/ruc-cdn/static/cms/

#5 https://cms.hub.tfl.gov.uk/published/LRUC/live-templates/live-content/ruc-cdn/static/cms/

Site Map

At the request of Jade (UX) I created a slightly altered version of the download that generated a report detailing a sitemap

The same options apply

go run runsitemap.go smlog.go 1

About

Simple GO program to download razor pages from visible directory (and sub directories) and save to disk doing some text replacemnet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •