Hi, is there a way to deploy and access growthbook using docker on a subpath of a domain, like example.com/growthbook/ ?
f
fresh-football-47124
06/12/2023, 7:58 PM
its not straight forward to do this atm
a
able-shampoo-34972
06/13/2023, 5:45 AM
hmm.. right.
And to deploy it on one domain, how to map front-end and back-end api (ports 3000 & 3100) on same domain?
I achieved this by mapping routes
/ to port 3000 (front-end)
/api to port 3100 (api)
/auth to port 3100
in nginx conf.
are there other routes/paths to map to backend?
I realised it's not just two routes as we move beyond login page. Why can't we have all api routes under one path like /api? It will ease out deployment configuration with only one subdomain.domain for both frontend and backend
f
fresh-football-47124
06/13/2023, 1:30 PM
yes, that would have been easier for this use case
✅ 1
you might be able to edit the API_HOST to have a /api/, since that is used to generate the URL to fetch - I haven’t tested this
a
able-shampoo-34972
06/13/2023, 6:22 PM
Tried that but no success. Thanks for your answers :)