diff --git a/.gitignore b/.gitignore index 0c0e7e42c..32f9cdbb5 100644 --- a/.gitignore +++ b/.gitignore @@ -117,3 +117,4 @@ test_data/census demographics.tab test_data/Census_Judicial_DP_Master_782015.tab preprocess_web/code/ravens_metadata/settings/gce preprocess_web/code/ravens_metadata/settings/gce_db_params.py +deploy/test_cloudsql.yml diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..1e258f41c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "submodules/metadata"] + path = submodules/metadata + url = https://github.com/TwoRavens/metadata.git diff --git a/Dockerfile-web b/Dockerfile-web index 353f54872..9bb2c5563 100644 --- a/Dockerfile-web +++ b/Dockerfile-web @@ -25,7 +25,7 @@ WORKDIR /var/webapps/raven-metadata-service # Copy over the requirements and run them # ------------------------------------- COPY ./requirements/ ./requirements -RUN pip3 install --no-cache-dir -r requirements/30_preprocess_web.txt +RUN pip3 install --no-cache-dir -r requirements/40_preprocess_web_mysql.txt # ------------------------------------- # Create a volume for sharing between containers diff --git a/preprocess_web/code/fabfile.py b/preprocess_web/code/fabfile.py index cb86c4550..17d037cc7 100644 --- a/preprocess_web/code/fabfile.py +++ b/preprocess_web/code/fabfile.py @@ -251,7 +251,7 @@ def run_preprocess(input_file, output_file=None): else: preprocess_cmd = 'python3 %s/preprocess.py %s' % \ (preprocess_dir, - input_file) + input_file) print('Run command: "%s"' % preprocess_cmd) local(preprocess_cmd) diff --git a/preprocess_web/code/ravens_metadata/settings/base.py b/preprocess_web/code/ravens_metadata/settings/base.py index 41fb6a3c3..8532dbc90 100644 --- a/preprocess_web/code/ravens_metadata/settings/base.py +++ b/preprocess_web/code/ravens_metadata/settings/base.py @@ -20,8 +20,8 @@ # Add path to celery task code # PREPROCESS_DIR = join(dirname(dirname(dirname(BASE_DIR))), - 'preprocess', - 'code') + 'preprocess', + 'code') sys.path.append(PREPROCESS_DIR) # Quick-start development settings - unsuitable for production @@ -52,7 +52,6 @@ 'django.contrib.staticfiles', 'django.contrib.humanize', - # debug toolbar 'debug_toolbar', # track preprocess @@ -192,4 +191,3 @@ TEST_ENV_VARIABLE = os.environ.get('TEST_ENV_VARIABLE', '(nothing set)') - diff --git a/preprocess_web/code/ravens_metadata/settings/gce_deploy_settings.py b/preprocess_web/code/ravens_metadata/settings/gce_deploy_settings.py index 54daa12cd..02c931b52 100644 --- a/preprocess_web/code/ravens_metadata/settings/gce_deploy_settings.py +++ b/preprocess_web/code/ravens_metadata/settings/gce_deploy_settings.py @@ -6,6 +6,7 @@ from google.oauth2 import service_account +DEBUG = False # ----------------------------------- # use Google Cloud MySQL # ----------------------------------- diff --git a/preprocess_web/code/ravens_metadata_apps/content_pages/templates/content_pages/editor.css b/preprocess_web/code/ravens_metadata_apps/content_pages/templates/content_pages/editor.css new file mode 100644 index 000000000..e69de29bb diff --git a/preprocess_web/code/ravens_metadata_apps/content_pages/templates/content_pages/editor.js b/preprocess_web/code/ravens_metadata_apps/content_pages/templates/content_pages/editor.js new file mode 100644 index 000000000..e69de29bb diff --git a/preprocess_web/code/ravens_metadata_apps/content_pages/templates/content_pages/editor_index.html b/preprocess_web/code/ravens_metadata_apps/content_pages/templates/content_pages/editor_index.html new file mode 100644 index 000000000..13d3a6947 --- /dev/null +++ b/preprocess_web/code/ravens_metadata_apps/content_pages/templates/content_pages/editor_index.html @@ -0,0 +1,12 @@ +{% load static %} + + +
+