change the DB settings and change the policy to restart after build
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5m27s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5m27s
This commit is contained in:
@@ -54,5 +54,5 @@ jobs:
|
||||
env:
|
||||
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||
with:
|
||||
args: delete pod -n django-python --all
|
||||
args: rollout restart deployment django -n django
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
|
||||
@@ -67,7 +67,11 @@ def download_mo(request,file):
|
||||
#return HttpResponse('<h1>Hello !</h1>')
|
||||
|
||||
def simpsons(request):
|
||||
generated_db = DB_generation("192.168.88.50",32345, "django_username", "Suffrage-Moneybags-Illusion7","django")
|
||||
#dev settings
|
||||
#generated_db = DB_generation("192.168.88.50",32345, "django_username", "Suffrage-Moneybags-Illusion7","django")
|
||||
#production settings
|
||||
generated_db = DB_generation("django-db-svc",5432, "django_username", "Suffrage-Moneybags-Illusion7","django")
|
||||
|
||||
cursor = generated_db.cursor()
|
||||
|
||||
#get max number of season
|
||||
|
||||
Reference in New Issue
Block a user