Skip to content

Commit 07d02f1

Browse files
committed
update cicd
1 parent a363f5e commit 07d02f1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/build-deploy.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ jobs:
5454
script: |
5555
cd backtestApp/src
5656
git pull
57+
cd backtestApp
58+
source venv/bin/activate
59+
pip install -r requirements.txt
60+
cd backtestApp/src/backend
61+
python manage.py migrate
62+
python manage.py collectstatic --noinput
5763
sudo -S systemctl restart backtestAppFrontEnd.service
5864
sudo -S systemctl restart backtestApp.service
5965

backend/myapp/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class CustomUserAdmin(UserAdmin):
1717
(None, {'fields': ('email', 'password')}),
1818
('Personal info', {'fields': ('first_name', 'last_name')}),
1919
('Permissions', {'fields': ('is_active', 'is_staff', 'is_superuser')}),
20-
('Important dates', {'fields': ('date_joined')}),
20+
('Important dates', {'fields': ('date_joined',)}),
2121
)
2222

2323
# Fields to be used when creating a user.

0 commit comments

Comments
 (0)