TIL: rails restart
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 Mastodon at @ylansegal@mastodon.sdf.org,
or by email at ylan@{this top domain}
.