Sending your deploy markers to Appsignal from a Phoenix app.AppSignal deploy markers are a way to keep track of what git commit the bug happened, or when the slowdown started appearing in your app. https://docs.appsignal.com/application/markers/deploy-markers.html As long as you have an APP_REVISION environm...1 min read·sergiotapia.comNov 18, 2024
Deploy Your Phoenix App on DigitalOcean in 30 MinutesHey there, we're going to walk through deploying a Phoenix app to a DigitalOcean droplet, manually - no tools no nothing. Just straight up BASH! But don't worry, I've done the hard work so you don't have to. It occurred to me this week after seeing s...4 min read·sergiotapia.comAug 29, 2024
Using binary ids / UUIDs for database primary keys in Rails.It's generally a good idea to use binary ids / UUIds for the primary keys in your database. Here's how to easily do it in Rails 7, using Postgres! Configure your generators to use UUID for keys. Create a file in config/initializers/generators.rb Rail...2 min read·sergiotapia.comJun 5, 2024
Direct File uploads with Phoenix Liveview and Cloudflare R2.It's been really hard to figure this out and I had to cobble together many sources to get it working. Enjoy! We're going to build a direct image upload to Cloudflare B2 from the browser. That way the file doesn't travel to your servers and slow them...3 min read·sergiotapia.comJan 11, 2024
DropzoneJS direct uploads to Backblaze B2 in Phoenix Liveview.Uploads files from your browser directly to your bucket.5 min read·sergiotapia.comAug 31, 2022