From 39db2df406202fca7e8efc22fef199302d81d5ac Mon Sep 17 00:00:00 2001 From: Sam Pearson Date: Wed, 30 Oct 2024 13:24:54 +0000 Subject: [PATCH 1/2] Initial deployment files --- .gitignore | 9 ++++++++- conf/env-example | 9 +++++++++ conf/httpd.conf-example | 1 + 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 conf/env-example create mode 100644 conf/httpd.conf-example diff --git a/.gitignore b/.gitignore index 32e9b23..922ee6c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,11 @@ .env .static build -dev_*.ipynb \ No newline at end of file +dev_*.ipynb +.venv +conf/env +conf/env.deployed +conf/httpd.conf +conf/httpd.conf.deployed +conf/crontab +conf/crontab.deployed diff --git a/conf/env-example b/conf/env-example new file mode 100644 index 0000000..f13076c --- /dev/null +++ b/conf/env-example @@ -0,0 +1,9 @@ +SECRET_KEY= +HIDE_DEBUG_TOOLBAR=True +DATABASE_URL= +ALLOWED_HOSTS= +CACHE_FILE= +BUGS_EMAIL= +EMAIL_HOST= +EMAIL_PORT= +GOOGLE_ANALYTICS= diff --git a/conf/httpd.conf-example b/conf/httpd.conf-example new file mode 100644 index 0000000..482949c --- /dev/null +++ b/conf/httpd.conf-example @@ -0,0 +1 @@ +# Example Apache config From a7b6d5e4c721d32d964b40d822bb3457ca9f9208 Mon Sep 17 00:00:00 2001 From: Sam Pearson Date: Wed, 30 Oct 2024 13:29:54 +0000 Subject: [PATCH 2/2] Remove data/{source,compiled} These directories will only contain generated data, so this removes and ignores them from the git repository as they may be handled in various ways by deployment tools. The top level directories are recreated in `script/bootstrap` so they are present if expected. --- data/.gitignore | 2 ++ data/compiled/.gitignore | 1 - data/source/.gitignore | 2 -- script/bootstrap | 4 +++- 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 data/.gitignore delete mode 100644 data/compiled/.gitignore delete mode 100644 data/source/.gitignore diff --git a/data/.gitignore b/data/.gitignore new file mode 100644 index 0000000..844d6c0 --- /dev/null +++ b/data/.gitignore @@ -0,0 +1,2 @@ +source +compiled \ No newline at end of file diff --git a/data/compiled/.gitignore b/data/compiled/.gitignore deleted file mode 100644 index bccc145..0000000 --- a/data/compiled/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.parquet \ No newline at end of file diff --git a/data/source/.gitignore b/data/source/.gitignore deleted file mode 100644 index f93f694..0000000 --- a/data/source/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -*.parquet -*.json \ No newline at end of file diff --git a/script/bootstrap b/script/bootstrap index d10f3a1..cee013d 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -34,4 +34,6 @@ if ! grep ^DEVENV .env ; then ;; esac done -fi \ No newline at end of file +fi + +mkdir -p data/{source,compiled}