Added .gitignore - to ignore generated files #260

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

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
hpr.db
public_html/*
Review

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
Review

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!