Hey everyone - I'm kinda struggling with hosting g...
# announcements
h
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
You can run 2 separate containers, one for the front-end (port 3000) and one for the back-end (port 3100)
h
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
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
Let me try
what is the workspace command for?
f
We use a monorepo, so that tells it which package (or workspace) to use
h
Cool! that worked!
will that work the same on front-end?
yarn workspace front-end start
f
yep
🙌 1
h
It worked! thanks a lot