Premium Only Content
How to Add Live Reload to Your Rails Application
Live reload is an incredible tool for developers looking to boost their productivity. In this tutorial, I will walk you through the process of implementing live reload in your Ruby on Rails application using esbuild.
Implementing live reload can greatly streamline your development workflow, saving you valuable time and effort. By automatically refreshing your app whenever you make changes, you can instantly see the results without manually reloading the page.
To achieve this, we will leverage the power of esbuild, a cutting-edge technology for fast and efficient JavaScript bundling. By combining esbuild with Ruby on Rails, we can create a seamless live reload experience that will streamline your development process.
Timestamps:
00:00 - Intro
00:05 - Why live reload and why with Rails?
02:18 - Demo project kickoff
04:06 - Adding esbuild to an existing app
04:42 - Add node dependencies
05:27 - Create an esbuild.config.js file
06:12 - Write the new configuration
17:55 - Add live_reload.js file
19:23 - Reviewing our work
20:21 - Trying it all out
21:45 - Other solutions you could try
25:16 - Closing thoughts
💻 Read the written version:
https://webcrunch.com/posts/live-reload-rails
======
👋 I'm Andy Leverenz, a passionate product designer and developer. I love creating and sharing my knowledge through design, coding, and writing. Join me on my journey by checking out my blog, Web-Crunch (https://webcrunch.com), where I publish tutorials, articles, and the occasional vlog about design and development.
📰 Never miss an update! Click here to subscribe: https://www.youtube.com/user/webcrunch?sub_confirmation=1
💻 Read the written version:
https://webcrunch.com/posts/live-reload-rails
💎 New to Ruby on Rails? Enroll in my course HELLO RAILS:
https://hellorails.io
💻 The Blog (my source of truth): https://webcrunch.com
Additional Links:
🎨 Bring life to Rails projects with Rails UI: https://railsui.com.
👨💻 Hire me: Visit: https://railsui.com/custom
🐤 https://twitter.com/webcrunchblog.
⚙️ https://github.com/justalever.
P.S. This stuff takes a long time to make but I love to do it. To help me keep at it consider supporting me. If not monetarily, then subscribe to the channel or share it with someone!
✨ https://github.com/sponsors/justalever
☕️ https://www.buymeacoffee.com/webcrunch
-
4:50:37
Drew Hernandez
1 day agoMIKE HUCKABEE EXPOSED FOR OFF RECORD MEETING WITH CONVICTED ISRAELI SPY?
46.4K22 -
4:07:43
SynthTrax & DJ Cheezus Livestreams
17 hours agoFriday Night Synthwave 80s 90s Electronica and more DJ MIX Livestream SYNTHWAVE / ANIME NIGHT
33.5K1 -
14:25
Tactical Advisor
15 hours agoReal Life John Wick Suit | Grayman & Company
21.4K2 -
LIVE
I_Came_With_Fire_Podcast
15 hours agoAlien Enemies Act | Dismantling the Department of Education | Valhalla VFT & America First
268 watching -
19:53
MetatronHistory
6 hours agoRome VS Greece - Ultimate Clash of Civilizations Explained
12.3K4 -
33:09
Exploring With Nug
8 hours ago $5.71 earnedThey Weren’t Ready for Nightfall on Blood Mountain… So I Helped Them Down
31.6K1 -
1:16:42
Sarah Westall
6 hours agoBoardroom and Government Infiltration: The Silent Erosion of American Power w/ Mike Harris
19.8K5 -
4:17:52
JahBlessCreates
4 hours ago🎉WE BACK!! MUSIC | VIBES | GAMES
4.35K1 -
2:20:15
XDDX_HiTower
4 hours ago $0.14 earnedR.E.D FRIDAY!! TIME FOR WAR! [RGMT CONTENT Mgr. | RGMT GL | GZW CL]
2.94K -
4:28:28
Cewpins
5 hours agoFRIDAY CrossFade PARTY!!🔥weed + dabs + prosecco🍃420💨!MJ
2.31K5