Skip to content

dhmap: stop deploying development files to the web root - #439

Merged
SoundGoof merged 1 commit into
productionfrom
dhmap-ignore-dev-files
Jul 28, 2026
Merged

dhmap: stop deploying development files to the web root#439
SoundGoof merged 1 commit into
productionfrom
dhmap-ignore-dev-files

Conversation

@SoundGoof

Copy link
Copy Markdown
Member

/opt/dhmap is symlinked to /var/www/html/dhmap and the whole repository is synced there recursively, with only .git excluded. So anything added to the repository becomes publicly readable, whether or not it has anything to do with serving the map.

dhmap is gaining a test suite, which brings a test tree, a Makefile, npm manifests and CI configuration - none of it useful in production.

Two of the excluded names matter beyond tidiness. Neither is committed, so neither should reach a puppetmaster checkout, but the cost of being wrong is uneven: local/ is where a real ipplan database is dropped during development, and publishing that would expose host addressing and network definitions; node_modules appears the moment anyone runs npm install in the checkout, and would sync several hundred megabytes into the web root.

Excluding them here means the deploy no longer depends on those files merely happening to be absent.

/opt/dhmap is symlinked to /var/www/html/dhmap and the whole
repository is synced there recursively, with only .git excluded. So
anything added to the repository becomes publicly readable, whether or
not it has anything to do with serving the map.

dhmap is gaining a test suite, which brings a test tree, a Makefile,
npm manifests and CI configuration - none of it useful in production.

Two of the excluded names matter beyond tidiness. Neither is
committed, so neither should reach a puppetmaster checkout, but the
cost of being wrong is uneven: local/ is where a real ipplan database
is dropped during development, and publishing that would expose host
addressing and network definitions; node_modules appears the moment
anyone runs npm install in the checkout, and would sync several
hundred megabytes into the web root.

Excluding them here means the deploy no longer depends on those files
merely happening to be absent.

@AlexanderMalmstrom AlexanderMalmstrom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks right to me

@SoundGoof
SoundGoof merged commit 66576fe into production Jul 28, 2026
1 check passed
@SoundGoof
SoundGoof deleted the dhmap-ignore-dev-files branch July 28, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants