Skip to content

Commit

Permalink
Merge pull request #1216 from fecgov/release/sprint-51
Browse files Browse the repository at this point in the history
Release/sprint 51
  • Loading branch information
Elaine-Krauss-TCG authored Dec 3, 2024
2 parents 02e0350 + d376ea5 commit 3f108fe
Show file tree
Hide file tree
Showing 36 changed files with 206 additions and 752 deletions.
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ jobs:
working_directory: ~/project/db

- run:
name: Create/run migrations
name: Check migrations
command: |
python manage.py migrate --no-input --traceback --verbosity 3
python manage.py makemigrations --check
working_directory: ~/project/django-backend/

# Only use SonarCloud security checking for now.
# - run:
# name: Bandit security checks
# command: |
# bandit -f json --output bandit.out -ii -ll -r . || echo "Bandit found issues" && cat bandit.out
- run:
name: Run migrations
command: |
python manage.py migrate --no-input --traceback --verbosity 3
working_directory: ~/project/django-backend/

- run:
name: Run tests
Expand Down
15 changes: 11 additions & 4 deletions bin/run-api.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
cd django-backend

# Run migrations and application
./manage.py migrate --no-input --traceback --verbosity 3 &&
python manage.py create_committee_views &&
exec gunicorn --bind 0.0.0.0:8080 fecfiler.wsgi -w 9
# Only Instance 0 runs migrations and creates views
echo "------ Starting APP ------"
if [ $CF_INSTANCE_INDEX = "0" ]; then
echo "----- Migrating Database -----"
python manage.py migrate --no-input --traceback --verbosity 3
echo "----- Creating committee views -----"
python manage.py create_committee_views
fi

# Run application
exec gunicorn --bind 0.0.0.0:8080 fecfiler.wsgi -w 9
Empty file.
116 changes: 0 additions & 116 deletions django-backend/fecfiler/authentication/migrations/0001_initial.py

This file was deleted.

Empty file.
99 changes: 0 additions & 99 deletions django-backend/fecfiler/authentication/models.py

This file was deleted.

25 changes: 0 additions & 25 deletions django-backend/fecfiler/authentication/test_views.py

This file was deleted.

12 changes: 0 additions & 12 deletions django-backend/fecfiler/authentication/urls.py

This file was deleted.

17 changes: 0 additions & 17 deletions django-backend/fecfiler/authentication/utils.py

This file was deleted.

74 changes: 0 additions & 74 deletions django-backend/fecfiler/authentication/views.py

This file was deleted.

Loading

0 comments on commit 3f108fe

Please sign in to comment.