Skip to content

Commit

Permalink
remove gov pass specific
Browse files Browse the repository at this point in the history
  • Loading branch information
depsiatwal committed Dec 23, 2024
1 parent 7be0bca commit 61aae0a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .copilot/phases/pre_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

set -e

sed -i '15 s/build_exporter/build_exporter_dbt/' package.json
sed -i '15 s/build_caseworker/build_caseworker_dbt/' package.json
sed -i '15 s/build_exporter/build_exporter/' package.json
sed -i '15 s/build_caseworker/build_caseworker/' package.json
11 changes: 1 addition & 10 deletions conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from environ import Env
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
from django_log_formatter_ecs import ECSFormatter
from django_log_formatter_asim import ASIMFormatter
from dbt_copilot_python.utility import is_copilot

Expand Down Expand Up @@ -165,10 +164,7 @@

LOGIN_URL = reverse_lazy("auth:login")

if IS_ENV_DBT_PLATFORM:
DATA_DIR = BASE_DIR
else:
DATA_DIR = os.path.dirname(BASE_DIR)
DATA_DIR = BASE_DIR

STATICFILES_FINDERS = (
"django.contrib.staticfiles.finders.FileSystemFinder",
Expand Down Expand Up @@ -228,11 +224,6 @@
LOGGING.update({"formatters": {"asim_formatter": {"()": ASIMFormatter}}})
LOGGING.update({"handlers": {"asim": {"class": "logging.StreamHandler", "formatter": "asim_formatter"}}})
LOGGING.update({"root": {"handlers": ["asim"], "level": LOG_LEVEL}})
elif IS_ENV_GOV_PAAS:
REDIS_URL = VCAP_SERVICES["redis"][0]["credentials"]["uri"]
LOGGING.update({"formatters": {"ecs_formatter": {"()": ECSFormatter}}})
LOGGING.update({"handlers": {"ecs": {"class": "logging.StreamHandler", "formatter": "ecs_formatter"}}})
LOGGING.update({"root": {"handlers": ["ecs"], "level": LOG_LEVEL}})
else:
# Local configurations and CircleCI
REDIS_URL = env.str("REDIS_URL", "")
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
"description": "Combined repo for LITE exporter and caseworker frontends",
"private": true,
"scripts": {
"build_exporter": "parcel build ./exporter/assets/javascripts/main.js ./exporter/assets/javascripts/cookie-policy-form.js --dist-dir exporter/assets/built --public-url /assets/",
"build_caseworker": "parcel build ./caseworker/assets/javascripts/{main,head,bookmarks,cookie-policy-form,desnz,tau,tau-edit,tau-multiple-assessment-edit,case-filters,refusal-review-consolidate,search-products}.js --dist-dir caseworker/assets/built --public-url /assets/",
"build_exporter_dbt": "NODE_OPTIONS='' parcel build ./exporter/assets/javascripts/main.js ./exporter/assets/javascripts/cookie-policy-form.js --dist-dir exporter/assets/built --public-url /assets/",
"build_caseworker_dbt": "NODE_OPTIONS='' parcel build ./caseworker/assets/javascripts/{main,head,bookmarks,cookie-policy-form,desnz,tau,tau-edit,tau-multiple-assessment-edit,case-filters,refusal-review-consolidate,search-products}.js --dist-dir caseworker/assets/built --public-url /assets/",
"build_exporter": "NODE_OPTIONS='' parcel build ./exporter/assets/javascripts/main.js ./exporter/assets/javascripts/cookie-policy-form.js --dist-dir exporter/assets/built --public-url /assets/",
"build_caseworker": "NODE_OPTIONS='' parcel build ./caseworker/assets/javascripts/{main,head,bookmarks,cookie-policy-form,desnz,tau,tau-edit,tau-multiple-assessment-edit,case-filters,refusal-review-consolidate,search-products}.js --dist-dir caseworker/assets/built --public-url /assets/",
"watch_exporter": "PARCEL_WORKERS=0 parcel watch --port 8400 ./exporter/assets/javascripts/{main,head}.js ./exporter/assets/javascripts/cookie-policy-form.js --dist-dir exporter/assets/built --public-url /assets/",
"watch_caseworker": "PARCEL_WORKERS=0 parcel watch --port 8401 ./caseworker/assets/javascripts/{main,head,bookmarks,cookie-policy-form,search-cases,desnz,tau,tau-edit,tau-multiple-assessment-edit,case-filters,refusal-review-consolidate,search-products}.js --dist-dir caseworker/assets/built --public-url /assets/",
"watch": "rm -rf .parcel-cache && npm run build_exporter && npm run build_caseworker && concurrently 'npm run watch_exporter' 'npm run watch_caseworker'",
Expand Down

0 comments on commit 61aae0a

Please sign in to comment.