Comments (19)
Yes absolutely. It would work something like this:
git clone
the repo andcargo build
to get a binary- put the binary on your server, and execute it with these env vars. you need to adjust
LEMMY_BB_BACKEND
so it connects to your existing lemmy - alternatively, clone directly on your server and
cargo run
(again with env vars) - setup nginx with a new (sub)domain, which forwards requests to
LEMMY_BB_LISTEN_ADDRESS
Let me know if anything is unclear or you have any problems.
from lemmybb.
Yes
from lemmybb.
Ah its probably because glibc version on your client where you compile is different from the server. Either compile on the server directly, or use a Debian vm of the same version to compile.
from lemmybb.
Once this gets to a stable place too, nutomic will likely do releases and publish docker images with them.
from lemmybb.
put the binary on your server
where can i find them?
is it the /lemmyBB/target/debug/lemmy_bb
?
from lemmybb.
What does this package belong to? On the net I could not find anything suitable.
./lemmy_bb
./lemmy_bb: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./lemmy_bb)
./lemmy_bb: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./lemmy_bb)
./lemmy_bb: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./lemmy_bb)
from lemmybb.
Dont know what that means. Are you running the same architecture on both devices? Maybe you need to use cargo build --release
, and then copy from /lemmyBB/target/debug/lemmy_bb
. If that doesnt work, try compiling directly on the server.
from lemmybb.
I compiled it on my client and then uploaded it to the server and wanted to run the lemmy_bb there
Client Arch x64
Server Debian x64
from lemmybb.
running :D
https://lemmybb.rollenspiel.monster/
what would be the best way to start this rocket server?
Currently I use the following command:
LEMMY_BB_BACKEND=http://127.0.0.1:8536 LEMMY_BB_LISTEN_ADDRESS=0.0.0.0:8701 ./lemmy_bb
from lemmybb.
Great! Best option is probably to write a systemd service file, its pretty simple.
Also, would you like to add some documentation about this to the readme?
from lemmybb.
I can do it, but will only make it to the weekend
from lemmybb.
Of course, there is no rush at all. Take your time.
from lemmybb.
Roughly summarized and untested I have to formulate later
am not sure if you put the lemmy_bb as a link or just copy it
# install lemmyBB
cd /opt
git clone https://github.com/LemmyNet/lemmyBB.git
cd lemmyBB
cargo build --release
ls /opt/lemmyBB/target/debug/lemmy_bb /opt/lemmyBB/lemmy_bb
# copy nginx config
cp docker/nginx-lemmybb.conf /etc/nginx/sites-enabled/lemmybb.conf
nano /etc/systemd/system/lemmy_bb.service
[Unit]
Description=lemmy_bb
After=network.target
[Service]
Type=simple
WorkingDirectory=/opt/lemmyBB/
Environment="LEMMY_BB_BACKEND=http://127.0.0.1:8536"
Environment="LEMMY_BB_LISTEN_ADDRESS=127.0.0.1:8703"
Environment="LD_PRELOAD=libjemalloc.so"
ExecStart=/opt/lemmyBB/lemmy_bb
Restart=always
[Install]
WantedBy=multi-user.target
systemctl enable --now lemmy_bb.service
systemctl status lemmy_bb.service
maybe better to activate the wiki and enter it there than to put everything in the readme?
from lemmybb.
I would prefer to add it too lemmy-docs, so we dont get tied to github too much. @dessalines do you agree with that?
am not sure if you put the lemmy_bb as a link or just copy it
For now i wont do that, because im not sure what would be the best way to distribute the project, and anyway its not really ready for production.
from lemmybb.
For now i wont do that, because im not sure what would be the best way to distribute the project, and anyway its not really ready for production.
I have to put the binary in the root directory; otherwise I get the message that the template folder is missing
from lemmybb.
True. It might be possible to embed templates etc in the binary, but that seems be complicated and not worth the effort for now.
from lemmybb.
I would prefer to add it too lemmy-docs, so we dont get tied to github too much. @dessalines do you agree with that?
i can't install this particular version of mdbook, it runs into error
if @dessalines agrees i can create a pr
from lemmybb.
If you want to maintain it sure, but I do suggest clients have install methods / instructions in their READMEs.
from lemmybb.
with #12 i added it to the readme
from lemmybb.
Related Issues (20)
- remove dead instances from list of known instances HOT 6
- [Question]: Is this project alive still? The domain fedibb.ml is down, and it doesn't seem that there's any way to communicate about troubleshooting. HOT 2
- [Question]: Can those errors be fixed in the README file? HOT 1
- [Feature]: line break latest reply
- clearing up installation instructions HOT 11
- What version of Cargo is needed? HOT 1
- Failed to start lemmy_bb HOT 9
- [Question]: Is the SSL Cert for the BB Subdomain made automatically? HOT 9
- [Bug]: timeout in backend when trying to update user profile HOT 2
- [Question]: Report software name as lemmybb for statistics? HOT 2
- [Bug]: Clicking any individual post link in a topic results in a 404
- [Bug]: Subject title link within topic leads to 404 HOT 1
- [Bug]: Reply to comment leads to 500: Internal Server Error
- [Bug]: Selecting higher sites than 1 on community-list gives every time back site 1
- [Bug]: No 500 catcher registered. Using Rocket default. HOT 4
- [Feature]: XenLemmy HOT 1
- [Bug]: 404 error when using pagination HOT 2
- [Bug]: Invalid URL Created When Changing Pages On Topic List HOT 2
- [Feature]: Separate mentions at the beginning of a post HOT 5
- [Bug]: update for lemmy 0.18.x and above HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lemmybb.