Skip to content

Commit

Permalink
Merge pull request #32 from SheCodesAus/bug-fix/workflow
Browse files Browse the repository at this point in the history
modify run.sh file
  • Loading branch information
suanTech committed Apr 1, 2024
2 parents 8a259b5 + c421479 commit c1e72d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ jobs:
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
- name: Create superuser
run: cd ../../exception_al && ./create_superuser.sh
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
3 changes: 0 additions & 3 deletions exception_al/create_superuser.sh

This file was deleted.

4 changes: 2 additions & 2 deletions exception_al/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
python manage.py migrate
python manage.py createsuperuser --no-input
gunicorn --bind :8000 --workers 1 exception_al.wsgi
echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@email.com', 'Password1!')" | python manage.py shell
gunicorn --bind :8000 --workers 1 exception_al.wsgi

0 comments on commit c1e72d4

Please sign in to comment.