Added .gitignore - to ignore generated files #260

Open
paulj wants to merge 1 commits from paulj/hpr_generator:add_gitignore into main
Contributor

Added .gitignore to ensure the database file and generated html files are ignored by git.

Added .gitignore to ensure the database file and generated html files are ignored by git.
paulj added 1 commit 2025-04-03 03:04:02 +00:00
ken_fallon reviewed 2025-04-03 08:20:20 +00:00
@ -0,0 +1,2 @@
hpr.db
public_html/*
Owner

This is too broad. We store actual files in here that need to be tracked.

eg https://repo.anhonesthost.net/HPR/hpr_generator/src/branch/main/public_html/images/hosts

When we run the application it puts the generated changing/static files into public_html/ so we end up with files from git and files generated from the generator.

It might be better to have these tracked files somewhere else (eg public_html_tracked or something) and pulled into public_html/ at generation

This is too broad. We store actual files in here that need to be tracked. eg https://repo.anhonesthost.net/HPR/hpr_generator/src/branch/main/public_html/images/hosts When we run the application it puts the generated changing/static files into `public_html/` so we end up with files from git and files generated from the generator. It might be better to have these tracked files somewhere else (eg `public_html_tracked` or something) and pulled into `public_html/` at generation
Author
Contributor

I'll look at setting this up. I do think it would be good to ignore the generated files, but I hadn't realised that some of the content was already there before generation!

I'll look at setting this up. I do think it would be good to ignore the generated files, but I hadn't realised that some of the content was already there before generation!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u add_gitignore:paulj-add_gitignore
git checkout paulj-add_gitignore
Sign in to join this conversation.
No description provided.