Hey @ansh.bsky.team @pfrazee.com sorry for tagging you on a weekend (pls ignore until monday) but I can't reply to my post :(
Post text is here: https://pastebin.com/JW8t2pr5
failed post text - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
7. Deploy!
if you have errors, you can fix them and simply push your changes to github and it will automatically redeploy
for example, I needed a fetch polyfill due to the older nodejs version so I added undici - I'm not sure if was due to my specific changes though since I added some stuff
This turned out to be pretty easy using Digital Ocean app platform! I'll make a short thread outlining the basic steps for getting your own feed generator up and running
1. Fork the example repo
https://github.com/bluesky-social/feed-generator
how are people hosting their feed generators then
I hate this part, this is why I’m a frontend dev lol
2. Get it working locally
Just follow the instructions in the README, basically just install deps using yarn, create an .env file and fill it in, then run yarn start! You'll see each post printed to the console as they come in. Note - you won't know what FEEDGEN_HOSTNAME is yet, leave it as is
1 1Also, you'll want to set FEEDGEN_SQLITE_LOCATION="db.sqlite" so that the database is persisted. Make sure to add db.sqlite to .gitignore
1 13. Edit the post selection mechanism
Open /src/subscription.ts
This is where it chooses which posts to save to the database. Delete the console.log() and edit the filter on line 23 to select whatever posts you're looking for
1 14. Create the app on Digital Ocean app platform
On Digital Ocean, create a new app and select your git repo (make sure you pushed your changes)
Select smallest option ($5.00/mo at time of writing)
1 15. Add the environment variables
When prompted, add your environment variables. There's an option for bulk editing - you can paste your whole .env file in here
1 16. Change env vars slightly
Make these changes:
FEEDGEN_PORT=8080
FEEDGEN_LISTENHOST="0.0.0.0"
2 17. Deploy!
if you have errors, you can fix them and simply push your changes to github and it will automatically redeploy
for example, I needed a fetch polyfill due to the older nodejs version so I added undici - I'm not sure if was due to my specific changes though since I added some stuff
1 1 18. Redeploy with new env vars
Bluesky is broken and won't let me reply but the text is in here: https://pastebin.com/JW8t2pr5
Basically replace FEEDGEN_HOSTNAME with the URL it gives you (on the app platform and locally)
1 19. Publish!
Open /scripts/publishFeedGen.ts and edit the values
When you're happy, run yarn publishFeed
1 1good morning alice i screenshotted you on twitter
Swifties community feed!
https://bsky.app/profile/did:plc:p2cp5gopk7mgjegy6wadk3ep/feed/swifties.social
View feed on Bluesky 1 2 2Big news! Each Community Handle now gets their own custom feed of the posts of community members! The feeds are all listed in the Feeds tab of my profile
FYI: you're still considered part of the community if you've signed up on the form, even if you've since changed your handle to somthing else!
ok can someone help me debug digital ocean app platform. I'm deploying the feed generator, it gets to this stage where I assume it should be working, hangs for a minute or so saying it's still deploying, then fails the build. any idea what I'm doing wrong? I set the port to 3000
1 1 3giving digital ocean app platform a go
instantly breaks because no pnpm support :(
how are people hosting their feed generators then
I hate this part, this is why I’m a frontend dev lol
how are people hosting their feed generators then
I hate this part, this is why I’m a frontend dev lol
3 3 6ok it's working :)
should proooobably add slur checking to my community handles tool now I think about it
pls don't fucking implode i'm just about to release my first app that i'm really proud of
played some nice relaxing cities skylines this evening, here are some pics I took of my city
apologies for the quality, playing on a macbook lol
2 6they waited this long to just say “be nice”??
Our community guidelines include the following:
1. Don’t use Bluesky Social to break the law or cause harm to others.
2. Treat others with respect. We don’t allow conduct that targets people based on their race, gender, religion, ethnicity, nationality, disability, or sexual orientation.