amnir opened a new issue, #8638:
URL: https://github.com/apache/incubator-devlake/issues/8638
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
## Question
I'm using the dev container for attempt at local development.
Using the default configuration and running `make configure-dev`, I wasn't
able to access the config-ui from outside the container.
After some digging, I found it was because Vite's dev server binds to
localhost by default, which is only reachable inside the container.
I was able to resolve it by adding the `--host` parameter to the `"start":
"vite"` inside the `package.json` file.
This makes it listen on 0.0.0.0, which lets VS Code's port-forwarder hook in.
My question is, am I missing a way to access it without any changes?
If not, I'm willing to contribute a PR with this change that should allow
config-ui access from outside the dev container out-of-the-box.
Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]