4

TIL: rails restart

 1 year ago
source link: https://ylan.segal-family.com/blog/2023/03/20/til-rails-restart/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

TIL: rails restart

Mar 20, 2023 • Ylan Segal • rails

I first started writing Rails in 2010. Today I learned on the Ruby on Rails Blog that you can restart a running server in development with:

$ bin/rails restart

Up until today, I always quit my server (ctrl-c) and restarted when I wanted to pick a change that won’t be hot-reloaded (e.g. a change to an initializer). This works, but it is slower, especially when I am using foreman to start a fleet of processes (e.g. webpacker, background workers).

Learning is a life-long process.


Find me on Twitter at @ylansegal and Mastodon at @[email protected]


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK