Added .gitignore - to ignore generated files #260
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "paulj/hpr_generator:add_gitignore"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added .gitignore to ensure the database file and generated html files are ignored by git.
@ -0,0 +1,2 @@
hpr.db
public_html/*
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 intopublic_html/
at generationI'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!
Checkout
From your project repository, check out a new branch and test the changes.