Skip to content

Commit eb6a1c9

Browse files
feat(deploy): add google cloud deploy doc (metaplex-foundation#226)
Co-authored-by: yasuoyuhao <[email protected]>
1 parent 6018393 commit eb6a1c9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

docs/deploy.md

+32
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,35 @@ After that, configure this project with the following settings:
6161
- Output directory: `packages/web/.next`
6262

6363
One last thing: specify `REACT_APP_STORE_OWNER_ADDRESS_ADDRESS` in the Environment Variables section
64+
65+
## Google Cloud Run
66+
67+
We can deploy deploy through docker and cloud run.
68+
Let's visit [Cloud Run](https://console.cloud.google.com/run)
69+
70+
### Prepare your docker container
71+
72+
1. change `Dockerfile` `ENV REACT_APP_STORE_OWNER_ADDRESS_ADDRESS=""` to your address.
73+
2. change `REACT_APP_STORE_OWNER_ADDRESS_ADDRESS` to your address. on `js/packages/web/.env.production`
74+
3. use `docker build . -t` build your image.
75+
4. use `gcloud cli` upload your image` [read](https://cloud.google.com/container-registry/docs/pushing-and-pulling)
76+
77+
### Create Clound Run Services
78+
79+
visit [Cloud Run](https://console.cloud.google.com/run)
80+
81+
1. click create service
82+
2. setup your service name, like `my nft store`
83+
3. choose your uploaded image
84+
4. open adcanced setings
85+
1. switch to Variables and keys
86+
2. add Environment Variables
87+
1. name: `NODE_ENV`, value: `production`
88+
5. set up & finish your create.
89+
90+
### setup your domain
91+
92+
visit [Cloud Run](https://console.cloud.google.com/run)
93+
94+
1. switch to manage custom domain
95+
2. setup your domain and bind service.

0 commit comments

Comments
 (0)