Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
••
Sichere ProgrammierungCloudflare outage 2019: how one regex caused 27 minutes of 502s(29.09.2026 um 05:46 Uhr)
•
Sichere ProgrammierungHow boxr runs rootless: namespaces, a trampoline, and uid mapping(29.09.2026 um 05:47 Uhr)
••
Sichere ProgrammierungTech Stack for Thumbrella Cloud(29.09.2026 um 05:51 Uhr)
•
AI & KI NachrichtenStructured Outputs vs function calling in the OpenAI API(29.09.2026 um 05:53 Uhr)
•
Sichere ProgrammierungSMS OTP API Ownership: 6 Rate Limit Rules for SaaS Login Recovery(29.09.2026 um 05:55 Uhr)
•
Sichere ProgrammierungHow I Review AI-Generated HTML Before Publishing It(29.09.2026 um 05:58 Uhr)
•
Sichere ProgrammierungAI - Weights(29.09.2026 um 05:59 Uhr)
•••
Sichere ProgrammierungCloudflare outage 2019: how one regex caused 27 minutes of 502s(29.09.2026 um 05:46 Uhr)
•
Sichere ProgrammierungHow boxr runs rootless: namespaces, a trampoline, and uid mapping(29.09.2026 um 05:47 Uhr)
••
Sichere ProgrammierungTech Stack for Thumbrella Cloud(29.09.2026 um 05:51 Uhr)
•
AI & KI NachrichtenStructured Outputs vs function calling in the OpenAI API(29.09.2026 um 05:53 Uhr)
•
Sichere ProgrammierungSMS OTP API Ownership: 6 Rate Limit Rules for SaaS Login Recovery(29.09.2026 um 05:55 Uhr)
•
Sichere ProgrammierungHow I Review AI-Generated HTML Before Publishing It(29.09.2026 um 05:58 Uhr)
•
Sichere ProgrammierungAI - Weights(29.09.2026 um 05:59 Uhr)
•
Intelligence View
⚡ tsecurity.de Intelligence

Build in public day 1 - Dealing With “Magic” in Frameworks

I’m working on a small project right now. Nothing revolutionary, but it works, it’s fun, and it has some interesting features. Most of my career has been on the frontend, but I’ve also worked with Django, FastAPI, and sometimes Rails…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

I’m working on a small project right now. Nothing revolutionary, but it works, it’s fun, and it has some interesting features.



Most of my career has been on the frontend, but I’ve also worked with Django, FastAPI, and sometimes Rails.



Rails has a very particular approach based on “magic.”



And I don’t mean “magic” only in a good way. I mean the kind of magic where things work… but you don’t fully understand why they work, because the framework hides a lot of complexity. This happens with many tools. jQuery was the first “don’t worry, I’ll handle it for you” library I used early in my career.



Hiding complexity is great, but it also requires skepticism, testing, and validation—things you don’t need as much when you build everything from scratch.



A Practical Example: Deploying With Kamal

For deployment, I used Kamal. Kamal handles a lot for you: server setup, deploy configuration, even SSL certificates. It’s a sweet deal—but you need to learn Kamal and trust Kamal.



Here’s a simple example of the configuration it requires:




service: retro

# Name of the container image.
image: registryUser/retro # <-- your docker username/project name

servers:
web:
- 0.0.0.0 # <-- your server IP

proxy:
ssl: true
host: retro.ponopo.site

registry:
server: localhost:5555
username: myusername # <-- your docker username

env:
secret:
- RAILS_MASTER_KEY

volumes:
- "db_storage:/root/storage"






Just a few lines, and Kamal will SSH into your server and set everything up. Magic!



When the Magic Breaks



Then I discovered a big bug in my production configuration.

So I had to slowly “unpack” the magic and understand what was really happening.



That led me to learn how to run Rails in production mode locally.



Here are the commands I used:



Create the production database


RAILS_ENV=production rails db:create



Run migrations


RAILS_ENV=production rails db:migrate



Precompile assets


RAILS_ENV=production rails assets:precompile



Start the server in production mode


RAILS_ENV=production rails s




Thanks and see y'all soon


Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Build in public day 1 - Dealing With “Magic” in Frameworks

Thematisch verwandte Begriffe: Build, public, Dealing, With · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-102367 | mall4j through 4.0 contains an insufficient session expiration vulnerab…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag