https://www.growthbook.io/ logo
#announcements
Title
# announcements
h

helpful-vegetable-73635

09/05/2022, 6:12 PM
Hey everyone - I'm kinda struggling with hosting growthbook on cloud run (GCP). Since cloud run only allows to expose one port per container I'm not sure how to go about this. any ideas?
f

future-teacher-7046

09/05/2022, 7:37 PM
You can run 2 separate containers, one for the front-end (port 3000) and one for the back-end (port 3100)
h

helpful-vegetable-73635

09/06/2022, 12:36 PM
Unfortunately I can't, because Cloud run supports only a single port, which causes the frontend to hijack the port
message has been deleted
f

future-teacher-7046

09/06/2022, 12:41 PM
The default command is to run both front-end and back-end in parallel. You can override the command so only one is started. For example
Copy code
yarn workspace back-end start
h

helpful-vegetable-73635

09/06/2022, 12:46 PM
Let me try
what is the workspace command for?
f

future-teacher-7046

09/06/2022, 1:09 PM
We use a monorepo, so that tells it which package (or workspace) to use
h

helpful-vegetable-73635

09/06/2022, 1:16 PM
Cool! that worked!
will that work the same on front-end?
yarn workspace front-end start
f

future-teacher-7046

09/06/2022, 1:16 PM
yep
🙌 1
h

helpful-vegetable-73635

09/06/2022, 1:31 PM
It worked! thanks a lot
9 Views