Setting up local lemmy-ui instance with remote backend? #1499
Replies: 10 comments 6 replies
-
Same boat! |
Beta Was this translation helpful? Give feedback.
-
Same here, been spelunking a little bit to find out how these environment variables are connected, I'm assuming others could just outline exactly what ENVs need to be set to develop lemmy-ui locally with a remote backend? |
Beta Was this translation helpful? Give feedback.
-
Hi guys. If you want you can make an account on my Lemmy instance https://zapad.nstr.no/ and then we can look at how we can connect your locally running lemmy-ui to the backend of my Lemmy instance. Ping me here after you've created an account. |
Beta Was this translation helpful? Give feedback.
-
@alectrocute were you able to do some progress on this? |
Beta Was this translation helpful? Give feedback.
-
I'm in the same boat, going to follow along and I'll post if I make any progress. |
Beta Was this translation helpful? Give feedback.
-
I've tried setting up a local |
Beta Was this translation helpful? Give feedback.
-
So I actually found a way to inject env vars via the However, more errors will occur down the road such as |
Beta Was this translation helpful? Give feedback.
-
So for this type of dev environment config issue I've been really liking devcontainers, so I figured I'd give it a go for this repo and I was able to get it working. You can simply launch vscode and the database, backend, and everything else will automatically run in docker. It'll all network together, and default configuration can be saved to the repo (so no fiddling with Demo: https://github.com/LemmyNet/lemmy-ui/assets/740503/c085daf5-431c-4be1-9348-74285cb05a46 The only downside of this is that devcontainers are really oriented around vscode, and other editors have limited (if any) support for them. Still, I don't think it can hurt to have another option for folks that makes it easier to contribute! |
Beta Was this translation helpful? Give feedback.
-
Anyone figured this out yet? I'm dead end with:
and there's no useful information in terminal or network tab, no guidance on how to proceed. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure what this one's about, I develop lemmy remotely, and I believe all the instructions here are correct: https://join-lemmy.org/docs/contributors/02-local-development.html |
Beta Was this translation helpful? Give feedback.
-
Hi all!
I'd like to work on contributing to the lemmy-ui project. As a mere frontend dev, I'd like to setup a local lemmy-ui instance and use a remote backend server on latest macOS. Can you please link me a guide or write up quick steps to make this possible?
I tried:
lemmy-ui
repo locally, with submodules init'd.yarn start
launched the frontend server successfully but couldn't connect tods9.lemmy.ml
as exported in myLEMMY_UI_LEMMY_INTERNAL_HOST
,LEMMY_UI_LEMMY_WS_HOST
env variables. I also tried settingLEMMY_UI_DISABLE_CSP
totrue
. I feel this is the closest I got.docker-compose
for both the frontend and backend locally, resulting in error:If I can get this setup, I'd love to spend a lot of free time contributing to this project. This is my main hurdle currently and it's been a bit of a headache to get up and running.
Thanks so much.
Beta Was this translation helpful? Give feedback.
All reactions