bottech [he/him] to hexbear • 4 years agoHow to have my local connect frontend connect to something?message-squaremessage-square36 fedilinkarrow-up19
arrow-up19message-squareHow to have my local connect frontend connect to something?bottech [he/him] to hexbear • 4 years agomessage-square36 Commentsfedilink
minus-squarebottech [he/him]hexagonhexbear3·4 years agoWhich backend should i use? https://git.chapo.chat/hexbear-collective/hexbear or https://git.chapo.chat/hexbear-collective/lemmy-hexbear link
minus-squarevertexarray [any]hexbear3·edit-24 years agohttps://git.chapo.chat/hexbear-collective/lemmy-hexbear is the rust backend, it's the one currently in production. Should use that. Also it has the frontend as a submodule. link
minus-squarebottech [he/him]hexagonhexbear3·4 years agoI managed to execute ./db-init.sh and now that i run cargo run i get could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? link
minus-squarevertexarray [any]hexbear3·4 years agohmm, maybe try restarting postgres? If you could run db-init using its default config, it should at least be on the right port already link
minus-squarebottech [he/him]hexagonhexbear3·edit-24 years agoif by restarting you meant sudo service postgresql restart then it didnt work link
minus-squarebottech [he/him]hexagonhexbear2·edit-24 years agoi figured how to fix that bug but now i have Specified path is not a directory: "../ui/dist/documentation" link
minus-squarevertexarray [any]hexbear2·4 years agoI ran into that one. I think I just had to do a release build of the ui. link
minus-squarevertexarray [any]hexbear2·4 years agoif you've pulled the submodules, you'll have the ui folder. do yarn build in there link
minus-squarebottech [he/him]hexagonhexbear2·edit-24 years agoI havent, ui is empty, should i just pull the frontend into ui? link
minus-squarebottech [he/him]hexagonhexbear2·4 years agoSo, after i cloned frontend into ui and did yarn build there, there are still those errors link
Which backend should i use?
https://git.chapo.chat/hexbear-collective/hexbear or
https://git.chapo.chat/hexbear-collective/lemmy-hexbear
https://git.chapo.chat/hexbear-collective/lemmy-hexbear is the rust backend, it's the one currently in production. Should use that. Also it has the frontend as a submodule.
I managed to execute
./db-init.sh
and now that i runcargo run
i getcould not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
hmm, maybe try restarting postgres? If you could run
db-init
using its default config, it should at least be on the right port alreadyif by restarting you meant
sudo service postgresql restart
then it didnt workI got nothin'
i figured how to fix that bug but now i have
Specified path is not a directory: "../ui/dist/documentation"
I ran into that one. I think I just had to do a release build of the ui.
Which is where?
if you've pulled the submodules, you'll have the ui folder. do
yarn build
in thereI havent, ui is empty, should i just pull the frontend into ui?
So, after i cloned frontend into ui and did
yarn build
there, there are still those errors