Skip to content

Commit 1dc716f

Browse files
deploy-1
1 parent db841b8 commit 1dc716f

5 files changed

Lines changed: 15 additions & 12 deletions

File tree

.github/workflows/cd_frontend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Audora frontend
22

33
on:
44
push:
5-
branches: [ production ]
5+
branches: [ master ]
66
paths:
77
- 'apps/audora-frontend/**'
88
- 'packages/**'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Audora Signal
22

33
on:
44
push:
5-
branches: [ production ]
5+
branches: [ master ]
66
paths:
77
- 'apps/audora-signal/**'
88
- 'packages/**'
@@ -49,7 +49,7 @@ jobs:
4949
sudo docker run -d \
5050
--name audora-signal \
5151
-e NODE_ENV=production \
52-
-e JWT_SECRET="${{ secrets.JWT_SECRET }}" \
52+
-e NEXTAUTH_SECRET="${{ secrets.NEXTAUTH_SECRET }}" \
5353
-e DATABASE_URL="${{ secrets.DATABASE_URL }}" \
5454
-p 8000:8000 \
5555
--restart always \

nginx-conf/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ sudo apt install certbot python3-certbot-nginx
166166
Step 2: Generate SSL Certificates
167167

168168
```bash
169-
sudo certbot --nginx -d server.audora.xyz -d signal.audora.xyz
169+
sudo certbot --nginx -d api.audora.xyz -d signal.audora.xyz
170170
```
171171

172172
If you later add the frontend:

nginx-conf/nginx-prod.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ http {
3636
# -------------------------------
3737
server {
3838
listen 80;
39-
server_name server.audora.xyz;
39+
server_name api.audora.xyz;
4040

4141
access_log off;
4242
error_log /var/log/nginx/backend.error.log warn;

package.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@
33
"private": true,
44
"scripts": {
55
"dev": "turbo run dev",
6-
"build": "turbo run build",
76
"start": "turbo run start",
7+
"start:frontend": "turbo run start:frontend --filter=audora-frontend",
8+
"start:backend": "turbo run start:backend --filter=audora-backend",
9+
"start:signal": "turbo run start:signal --filter=audora-signal",
10+
"build": "turbo run build",
11+
"build:frontend": "docker build -f docker/frontend.prod.Dockerfile -t audora-frontend .",
12+
"build:backend": "docker build -f docker/backend.prod.Dockerfile -t audora-backend .",
13+
"build:signal": "docker build -f docker/signal.prod.Dockerfile -t audora-signal .",
814
"lint": "turbo run lint",
9-
"start:frontend": "turbo run start:frontend",
10-
"start:backend": "turbo run start:backend",
11-
"start:signal": "turbo run start:signal",
12-
"infra:up": "docker compose up -d",
13-
"infra:down": "docker compose down",
1415
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
1516
"check-types": "turbo run check-types",
1617
"db:up": "docker-compose -f docker/db.docker-compose.yml up -d",
1718
"db:down": "docker-compose -f docker/db.docker-compose.yml down",
1819
"db:deploy": "turbo run db:deploy",
19-
"generate": "turbo run generate"
20+
"generate": "turbo run generate",
21+
"infra:up": "docker compose up -d",
22+
"infra:down": "docker compose down"
2023
},
2124
"devDependencies": {
2225
"prettier": "^3.5.3",

0 commit comments

Comments
 (0)