[Question]: Developing on docker with live reload #475
-
Contact DetailsWhat is your question?I'm currently trying to add some new features however I am not entirely sure how the dev workflow works, are you using docker to start the app on dev? More DetailsMain issue is I just want to enable live reload so when i make ui changes it refreshes, i'm not sure if you already have this implemented or not What is the main subject of your question?No response ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Awesome, thanks for wanting to contribute! I recommend jumping in our discord as the active devs chat there a lot: https://discord.gg/CEe6vDg9Ky, ping me when you join To answer your question, you shouldn't be using docker for dev work. I'm sure there's an easy way to configure it, but docker has not been configured for development. The best way to is to install locally, which will depend on your environment but in general it goes like this, provided you have env file setup, the latest npm installed and mongodb installed or using atlas; note: you can use mongodb from your docker container on your local setup, I can get into it more if you want. # in the directory you want the project in
git clone https://github.com/danny-avila/LibreChat.git
cd ./LibreChat
npm ci
npm run backend #backend-dev if you are making changes to the api
npm run frontend-dev # this is for live reload |
Beta Was this translation helpful? Give feedback.
I added a devcontainer setup, see here: #524