Skip to content

Commit e8eafb6

Browse files
committed
fix missing words
1 parent 8680327 commit e8eafb6

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

packages/doc/docs/deployment/flydotio.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ ENV NODE_ENV production
115115
CMD [ "node", "index.js" ]
116116
```
117117

118-
**Notes: if you have [multiple profiles](../references/data-source-profile#define-profile-in-independent-yaml-files), you should copy them into the dist folder and add them all in the Dockerfile.**
118+
**Notes: if you have [multiple profiles](../references/data-source-profile#define-profile-in-independent-yaml-files),
119+
you should copy them into the dist folder and add them all in the Dockerfile.**
119120
:::
120121

121122
## Step 4: Setup Fly.io deployment config

packages/doc/docs/deployment/gcp-cloud-run.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,28 @@ dist
5454
:::caution
5555
External resources and configurations, such as `profiles.yaml`, are not copied to the `dist` folder.
5656
You'll need to copy them manually. We strongly recommend using a separate profile instead of the one used for development.
57+
58+
After copying `profiles.yaml` into the `dist` folder, you should also add one line in `Dockerfile` as following:
59+
60+
```shell
61+
.
62+
.
63+
.
64+
FROM node:16-bullseye-slim
65+
WORKDIR /usr/app
66+
COPY --from=build /usr/app /usr/app
67+
COPY config.json .
68+
COPY index.js .
69+
COPY result.json .
70+
# add the line below
71+
COPY profiles.yaml .
72+
ENV NODE_ENV production
73+
74+
CMD [ "node", "index.js" ]
75+
```
76+
77+
**Notes: if you have [multiple profiles](../references/data-source-profile#define-profile-in-independent-yaml-files),
78+
you should copy them into the dist folder and add them all in the Dockerfile.**
5779
:::
5880

5981
## Step 3: Deploy to Cloud Run from source

0 commit comments

Comments
 (0)