-
Notifications
You must be signed in to change notification settings - Fork 935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bit server start issue in self hosted docker in kubernetes cluster (any load balancer setup) #4923
Comments
We should probably use They also have the option of |
@KutnerUri I have spent time to setup the repo. Please check and let me know if there is already a way to solve that by making the change as fork. |
yes, the code needs some tweaking. I believe the relevant code is here -
I think you can just replace it with: publicPath: process.env.ASSET_PATH || '/'; setup might be as simple as # clone
git clone https://github.com/teambit/bit.git
cd bit
# install
rm -rf node_modules public/bit
bit install # this might take a long time
bit compile
# probably not needed:
# npm run build
# npm run build:types
## OR
# npm run build:windows
# one time registration
npm run dev-link bd
# OR
npm run dev-link:windows bd
# you will then be able to run:
bd -v
# output will be "last-tag 0.0.516"
# (unlike bit -v, which outputs "0.0.516"
# etc
> ~/project/example-project$
bd start --rebuild remember to watch your cloned bit folder before starting to code!
|
@KutnerUri : I scratched my head already by trying few things with above steps by setting cmd link as |
There is open PR #4958 for this. |
I pulled the latest bitcli/bit version: 0.0.555, but I still have the same problem. Is it resolved? @pgangwani @KutnerUri |
This feature is too complicated. We tried to make it work with Pgangwani's PR, but it's not working in all edge cases. :/ |
unfornunatily, at this point we are not looking support this type of structure. |
Describe the bug
While deploying self hosted bit-server in kubernetes env (GCP), ui doesnt work as static/* points to root of the load-balancer always.
Steps to Reproduce
Access the README.md of https://github.com/pgangwani/bit-server-static-public-path-issue
Expected Behavior
Server should be up and the respective static folder path should be either relative point to the same public as index.html or there should be runtime method to override:
Screenshots, exceptions and logs
If applicable, add screenshots, exceptions, and logs to help explain your problem.
Specifications
for harmony workspace
for leagacy
Additional context
[Update] 10/5
Worked with @KutnerUri on testing the suggested
ASSET_PATH
inwebpack.browser.config.ts
, which worked for setting publicpath forstatic/
but got new cascaded issue into attention where/graphql
gives 404Related Pull Request
#4958
The text was updated successfully, but these errors were encountered: