Skip to content

Commit

Permalink
contrihub, .github: Set default db and variables for workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shank03 committed Oct 4, 2023
1 parent 426232f commit a1d232f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up MySQL
run: |
sudo /etc/init.d/mysql start
mysql -uroot -proot -hlocalhost -P3306 -e "create database contrihub23_db;"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
Expand Down
6 changes: 3 additions & 3 deletions contrihub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@
# Database
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases

DB_NAME = config('DB_NAME', default='contrihub')
DB_USER = config('DB_USER')
DB_PASSWORD = config('DB_PASSWORD')
DB_NAME = config('DB_NAME', default='contrihub23_db')
DB_USER = config('DB_USER', default='root')
DB_PASSWORD = config('DB_PASSWORD', default='root')
DB_HOST = config('DB_HOST', default='localhost')
DB_PORT = config('DB_PORT', default='3306')

Expand Down

0 comments on commit a1d232f

Please sign in to comment.