Skip to content

Commit 2511a22

Browse files
authored
Merge pull request #660 from UnitapApp/develop
feat: added dokku deployment configurations for production
2 parents 95fe09d + d74e981 commit 2511a22

File tree

3 files changed

+36
-5
lines changed

3 files changed

+36
-5
lines changed

.github/workflows/dev-deploy.yml renamed to .github/workflows/main-deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Deploy to Server
1+
name: Deploy to Production Server
22

33
on:
44
push:
55
branches:
6-
- develop
6+
- main
77

88
jobs:
99
deploy:
@@ -25,6 +25,6 @@ jobs:
2525
2626
- name: Push to Server
2727
run: |
28-
git remote add dokku dokku@70.34.210.129:unitap-dev
28+
git remote add dokku dokku@${{ secrets.SSH_IP_ADDRESS }}:${{ secrets.DOKKU_PROJECT }}
2929
git fetch --unshallow origin
30-
git push dokku develop -f
30+
git push dokku main -f

Procfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
worker: celery -A brightIDfaucet worker -B
2+
beat: celery -A brightIDfaucet beat -l INFO
23
release: python manage.py migrate
3-
web: gunicorn brightIDfaucet.wsgi --workers 4 --threads 2
4+
web: gunicorn brightIDfaucet.wsgi --workers 2 --threads 2

app.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"formation": {
3+
"release": {
4+
"quantity": 1
5+
},
6+
"beat": {
7+
"quantity": 1
8+
},
9+
"worker": {
10+
"quantity": 1
11+
},
12+
"web": {
13+
"quantity": 1
14+
}
15+
},
16+
"healthchecks": {
17+
"web": [
18+
{
19+
"type": "startup",
20+
"name": "web check",
21+
"description": "Checking if the app responds to the healthcheck endpoint",
22+
"path": "/pass/art/1",
23+
"attempts": 10,
24+
"interval": "30s",
25+
"wait": 10,
26+
"initialDelay": 30
27+
}
28+
]
29+
}
30+
}

0 commit comments

Comments
 (0)