ruby - When do I need to restart server in Rails? -


i have noticed when change rails project files such html.erb or .css, don't have restart server rails -s command.

but think when want install new gem have to. thing i'm trying jquery work, i'm tired of doing rails -s time.

can tell me when have run rails -s again when i'm modifying app , when can afford not it? not doing it, mean refreshing webpage see changes.

you need restart server when need rails loaded again start.

if you're adding or removing gems, yes, need restart server.

if change version of ruby, change gemfile or change internal classes of rails, need restart it, otherwise should ok. if unexpected problems arise, restart server first thing should try.

also, on side-note, see changes refreshing page if config.cache_classes set false (which think default development, not production).

edit:

just make sure notice, tadman said 1 wise thing @ comments, the general rule of thumb here making changes outside of app/ or config/routes.rb or db/ require restart.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -