hacs / integration

HACS gives you a powerful UI to handle downloads of all your custom needs.
https://hacs.xyz
MIT License
4.87k stars 1.22k forks source link

How to attach hacs-frontend to Home Assistant instance ? #3765

Closed EastWoodYang closed 3 weeks ago

EastWoodYang commented 3 weeks ago

Describe the issue

After spin up the devcontainer, and run yarn start,

I can't open http://localhost:5000, I guess I missed something. can anyone help me?

How to attach hacs-frontend(http://localhost:5000) to Home Assistant instance ?

Screenshots

image
hacs-bot[bot] commented 3 weeks ago

Make sure you have read the issue guidelines and that you filled out the entire template.

If you have an issue identical to this, do not add comments like "same here", "i have this too", instead add a :+1: reaction to the issue description. Thanks! :+1:

ludeeus commented 3 weeks ago

You use the -f argument to the integration develop script to point to the directory of the frontend. Like scripts/develop -f /workspaces/frontend

https://next.documentation-98o.pages.dev/docs/contribute/frontend/

EastWoodYang commented 3 weeks ago

Hi @ludeeus,

I still can't attach development frontend to integration instance by using the -f flag.

scripts/develop -f /workspaces/frontend or scripts/develop -f /Users/adong/Workspace/hacs/frontend

integration local path: /Users/adong/Workspace/hacs/integration frontend local path: /Users/adong/Workspace/hacs/frontend

thank you in advance !

image

ludeeus commented 3 weeks ago

/Users/adong/Workspace/hacs/ will not exist inside the container.