@@ -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
6161Build the docker images:
6262
@@ -74,15 +74,15 @@ docker push lihebi/codepod-api:v0.1.0
7474docker 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```
8081ufw allow 80
8182certbot 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```
8888cd compose/prod
@@ -98,6 +98,8 @@ POSTGRES_DB=<dbname>
9898JWT_SECRET=<yoursecret>
9999```
100100
101+ Change the domain name to your DNS in nginx.conf, e.g., ` app-v1.codepod.io ` :
102+
101103Start the docker-compose stack:
102104
103105```
@@ -110,17 +112,15 @@ Then, initialize a DB by shell into the api container and run:
110112npx 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-
119115Pull the kernel image:
120116
121117```
122118docker pull lihebi/codepod_kernel_python:v0.1.0
123119docker 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