Skip to content

Commit

Permalink
Deploy to test (#1802)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Dec 1, 2023
2 parents edd35c4 + 9ac066b commit 10f8a0b
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ benefits/static/sha.txt
__pycache__/
.coverage
.DS_Store
.venv
19 changes: 11 additions & 8 deletions bin/init.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
#!/usr/bin/env bash
set -eux

# remove existing (old) database file

if [[ ${DJANGO_DB_RESET:-true} = true ]]; then
# construct the path to the database file from environment or default
DB_DIR="${DJANGO_DB_DIR:-.}"
DB_FILE="${DB_DIR}/django.db"
# make the path to the database file from environment or default
DB_DIR="${DJANGO_DB_DIR:-.}"
DB_FILE="${DB_DIR}/django.db"
DB_RESET="${DJANGO_DB_RESET:-true}"

# -f forces the delete (and avoids an error when the file doesn't exist)
rm -f "${DB_FILE}"
# remove existing (old) database file
if [[ $DB_RESET = true && -f $DB_FILE ]]; then
# rename then delete the new file
# trying to avoid a file lock on the existing file
# after marking it for deletion
mv "${DB_FILE}" "${DB_FILE}.old"
rm "${DB_FILE}.old"
fi

# run database migrations
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
mdx_truly_sane_lists
mkdocs
mkdocs-awesome-pages-plugin
mkdocs-macros-plugin
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ markdown_extensions:
- attr_list
- codehilite:
linenums: true
- mdx_truly_sane_lists
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies = [
"django-csp==3.7",
"eligibility-api==2023.9.1",
"requests==2.31.0",
"sentry-sdk==1.35.0",
"sentry-sdk==1.38.0",
"six==1.16.0",
]

Expand Down
14 changes: 7 additions & 7 deletions tests/cypress/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"license": "AGPL-3.0-or-later",
"private": true,
"devDependencies": {
"cypress": "^13.5.1"
"cypress": "^13.6.0"
}
}

0 comments on commit 10f8a0b

Please sign in to comment.