Comments (10)
Replace the code in .replit file with this
run = "while :; do set -ex; nix-env -iA nixpkgs.unzip; curl -o./libreddit -fsSL -- https://github.com/libreddit/libreddit/releases/download/v0.30.1/libreddit; chmod +x libreddit; set +e; ./libreddit -H 63115200; sleep 1; done"
language = "bash"
entrypoint = "src/main.rs"
hidden = ["target"]
[languages]
[languages.rust]
pattern = "**/*.rs"
[languages.rust.languageServer]
start = "rust-analyzer"
[packager]
language = "rust"
[packager.features]
packageSearch = true
[nix]
channel = "stable-22_11"
[gitHubImport]
requiredFiles = [".replit", "replit.nix"]
[deployment]
build = ["cargo build --release"]
run = ["./target/release/my-project"]
This should work. The previous code isnt working because of the nightly link not working in the .replit file.
from libreddit.
This should work. The previous code isnt working because of the nightly link not working in >the .replit file.
Thanks a lot man! For the new code, it worked perfectly. I appreciate ur help. Sorry it took a while to thank u cuz I gave up looking for answers on this thread after a week or two cuz I thought no one would help since the project is kinda not maintained like before. I'll keep the issue open in case someone faces the same problem as me and also u should fork it to change the code of .replit on this repo too. I didn't do it myself cuz I don't wanna take credit of your code.
Btw, I'd also appreciate if u could help me out again. The code ran properly. But I wanna deploy the program on static deployment because that's the free option and replit will stop allowing from hosting from 2024.
I tried to follow your instructions and used "./target/release/my-project" as my public directory but i get the following error: package `time-macros v0.2.9` cannot be built because it requires rustic 1.65.0 or newer while the current active rustic version is 1.64.0
I got this error, I tried the default public directory but it didn't work either. I'm sorry for asking ur help again but I'm not coder myself. So I'm unable to fix it
from libreddit.
I will have to look that up. If I find something will tell you.
from libreddit.
I will have to look that up. If I find something will tell you.
Also can you tell me what is static deployment on replit and what was the deployment using .replit file called? A link to that would work
from libreddit.
I will have to look that up. If I find something will tell you.
Also can you tell me what is static deployment on replit and what was the deployment using .replit file called? A link to that would work
Idk what was the deployment on .replit file. It'd didn't give any clear indications. I've just chosen the static deployment because it's the free one. And here is the documentation https://docs.replit.com/category/deployments
I'm having the same problem with Whoogle also (it's giving different error). I don't know the public directory. Basically, static deployment requires a public directory. But Whoogle or Libreddit didn't clearly mention anything about public directory in their documentation. So I just tried different stuff. N as result I tried the directory given on ur code too and got the error as mentioned above
from libreddit.
Oh, that's bad news.
What this means is we can only host frontend on replit for free from 2024 that basically means we would not be able to host libreddit(since it also has a backend) for free.
from libreddit.
Oh, that's bad news. What this means is we can only host frontend on replit for free from 2024 that basically means we would not be able to host libreddit(since it also has a backend) for free.
Yes, unless we find a way to know the public directory and host on static deployment. I think the directory u gave ./target/release/my-project
was correct but for newer version but doesn't work on older version. That's why it gave that type of error.
Back when I couldn't run libreddit on replit, I tried other hosting alternative present on this github repo. Heroku is paywalled but Glitch is free. I wonder if applying the same changes of replit would make it work or not. Let me try it out lol
from libreddit.
Oh, that's bad news. What this means is we can only host frontend on replit for free from 2024 that basically means we would not be able to host libreddit(since it also has a backend) for free.
Yes, unless we find a way to know the public directory and host on static deployment. I think the directory u gave
./target/release/my-project
was correct but for newer version but doesn't work on older version. That's why it gave that type of error. Back when I couldn't run libreddit on replit, I tried other hosting alternative present on this github repo. Heroku is paywalled but Glitch is free. I wonder if applying the same changes of replit would make it work or not. Let me try it out lol
Sorry you didn't get me a public directory is for something that only has a frontend as you might see libreddit also requires a backend to run and only running libreddit's frontend would be of no use. That's why I said that we can't host it on replit. You may try glitch btw maybe it allows free hosting for backend also.
from libreddit.
Sorry you didn't get me a public directory is for something that only has a frontend as you might see libreddit also requires a backend to run and only running libreddit's frontend would be of no use. That's why I said that we can't host it on replit. You may try glitch btw maybe it allows free hosting for backend also.
I see. Now I got it. Damn that sucks! I thought I'd be able to host the backend to if I had the public directory.but ig I was wrong. Anyway thanks for trying. I appreciate it. Atleast I can use it for 2 months because of ur code. That's better than nothing.
As for Glitch, the logs gives me a lot of error and frankly idk what they mean. Ig it gotta be fixed first but glitch doesn't have a .glitch file like replit. So idk how to fix it lol. Btw Idk if Glitch allows backend tho.
from libreddit.
Sorry you didn't get me a public directory is for something that only has a frontend as you might see libreddit also requires a backend to run and only running libreddit's frontend would be of no use. That's why I said that we can't host it on replit. You may try glitch btw maybe it allows free hosting for backend also.
I see. Now I got it. Damn that sucks! I thought I'd be able to host the backend to if I had the public directory.but ig I was wrong. Anyway thanks for trying. I appreciate it. Atleast I can use it for 2 months because of ur code. That's better than nothing.
As for Glitch, the logs gives me a lot of error and frankly idk what they mean. Ig it gotta be fixed first but glitch doesn't have a .glitch file like replit. So idk how to fix it lol. Btw Idk if Glitch allows backend tho.
You found anything? Now since replit doesnt stay on. My instance is down.
from libreddit.
Related Issues (20)
- [Use the power of a /44 ipv4] HOT 15
- π Bug Report: HOT 1
- <redacted> HOT 3
- Add to wiki a template to help instance maintainers to handle takedown notices
- π Bug Report: "Failed to parse page JSON data" on most wiki pages (exceptions exist)
- π Bug Report: GIF blocked by CSP
- Changing port on docker does not seem to work. HOT 1
- π Bug Report: URL in .replit file return 404 HOT 1
- π‘ Feature request: Add support to install as PWA
- β¨ Feature parity: follow new share links
- β¨ Feature parity: Render in-text pictures in libreddit posts
- π‘ Feature request: Show subreddit name on userpage comments
- What about Librelemmy or LibreKbinπ‘ HOT 4
- β¨ Feature parity: Add infinite scroll and post view more expansion
- π Bug Report: Failed to parse page JSON data: expected value at line 1 column 1 HOT 3
- π Bug Report: Error on home page HOT 34
- The future of Libreddit HOT 11
- π Bug Report: Split subscriptions across multiple cookies HOT 1
- π Bug Report: LIB REDDIT IS FINALLY DEAD NOW EVEN FOR SELFHOSTER SO MOVE ON TO REDLIB PROJECT HOT 1
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 libreddit.