Skip to content

Commit 3aabc8c

Browse files
committed
update deployment doc
1 parent d2efa1d commit 3aabc8c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This allows codepod.test to be resolved to your server machine. Then, go to
5656
- http://codepod.test:3000/graphql the grpahql explorer
5757
- http://codepod.test:5555 the prisma db viewer
5858

59-
# (TODO) Deployment
59+
# Deployment
6060

6161
Build the docker images:
6262

@@ -74,15 +74,15 @@ docker push lihebi/codepod-api:v0.1.0
7474
docker push lihebi/codepod_kernel_python:v0.1.0
7575
```
7676

77-
Create a cloud VM with docker support. Setup TLS, e.g., `app-v1.codepod.io`:
77+
Create a cloud VM with docker support. Add DNS from domain name to the cloud
78+
server. Setup TLS, e.g., `app-v1.codepod.io`:
7879

7980
```
8081
ufw allow 80
8182
certbot certonly --standalone
8283
```
8384

84-
Clone this repo on the cloud VM, and go to the production folder, change the
85-
domain name to your DNS e.g., `app-v1.codepod.io`:
85+
Clone this repo on the cloud VM, and go to the production folder:
8686

8787
```
8888
cd compose/prod
@@ -98,6 +98,8 @@ POSTGRES_DB=<dbname>
9898
JWT_SECRET=<yoursecret>
9999
```
100100

101+
Change the domain name to your DNS in nginx.conf, e.g., `app-v1.codepod.io`:
102+
101103
Start the docker-compose stack:
102104

103105
```
@@ -110,17 +112,15 @@ Then, initialize a DB by shell into the api container and run:
110112
npx prisma migrate dev --name init
111113
```
112114

113-
Now add DNS from domain name to the cloud server. Now go to
114-
115-
- http://codepod.test:3000 the web app
116-
- http://codepod.test:3000/graphql the grpahql explorer
117-
- http://codepod.test:5555 the prisma db viewer
118-
119115
Pull the kernel image:
120116

121117
```
122118
docker pull lihebi/codepod_kernel_python:v0.1.0
123119
docker tag lihebi/codepod_kernel_python:v0.1.0 codepod_kernel_python
124120
```
125121

122+
Now go to
123+
124+
- https://app-v1.codepod.io the web app
125+
126126
# (TODO) Architecture

0 commit comments

Comments
 (0)