Samuel
the world if replyRef contained basic info about the parent post, like author's displayName
6
Samuel
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
Samuel@samuel.fm· 15 Jul 2023
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
2 2
Samuel
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 1
Samuel
Also, 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 1
Samuel
3. 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 1
Samuel
4. 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 1
Samuel
5. 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 1
Samuel
6. Change env vars slightly Make these changes: FEEDGEN_PORT=8080 FEEDGEN_LISTENHOST="0.0.0.0"
2 1
Samuel
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
1 1 1
Samuel
8. 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 1
Samuel
9. Publish! Open /scripts/publishFeedGen.ts and edit the values When you're happy, run yarn publishFeed
1 1
Samuel
Big 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!
1 2 6
Samuel
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 3
Samuel
giving digital ocean app platform a go instantly breaks because no pnpm support :(
Samuel@samuel.fm· 15 Jul 2023
how are people hosting their feed generators then I hate this part, this is why I’m a frontend dev lol
2 4
Samuel
how are people hosting their feed generators then I hate this part, this is why I’m a frontend dev lol
3 3 6
Samuel
should proooobably add slur checking to my community handles tool now I think about it
1 2 13
Samuel
pls don't fucking implode i'm just about to release my first app that i'm really proud of
4 2 32
Samuel
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 6
Samuel
they waited this long to just say “be nice”??
Bluesky@bsky.app· 14 Jul 2023
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.
2 4
Older posts