-
Notifications
You must be signed in to change notification settings - Fork 712
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
Fix make client-start #1210
Fix make client-start #1210
Conversation
This seems to be making progress in the right direction but:
This is how I launch it (inside a virtual machine with IP 172.16.0.3 in my OSX laptop):
This is the UI (connecting from a browser in my OSX laptop): |
20-30 secs is normal for building the JS bundle.
I had a similar issue. For me it was an old scope container running. This setup needs a scope container running to serve the backend. That scope version's API has to be compatible with the one you're running in |
* made webpack host configurable via env * start via `make WEBPACK_SERVER_HOST=local.docker client-start` * removed port from BACKEND_HOST env
I had to |
Thanks! |
(i.e. LGTM!) |
@@ -127,7 +127,7 @@ client-lint: $(SCOPE_UI_BUILD_UPTODATE) | |||
|
|||
client-start: $(SCOPE_UI_BUILD_UPTODATE) | |||
$(SUDO) docker run $(RM) $(RUN_FLAGS) --net=host -v $(shell pwd)/client/app:/home/weave/app \ | |||
-v $(shell pwd)/client/build:/home/weave/build \ | |||
-v $(shell pwd)/client/build:/home/weave/build -e WEBPACK_SERVER_HOST \ |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Expected code-changes outside container aren't detected/served up. But hosting works nicely! LGTM |
--no-optional
fromnpm install
make WEBPACK_SERVER_HOST=local.docker client-start
Hot code reloading is not working yet (due to missing inotify support in OSX). You have to restart the container after a code change.