Rails Server needs restart every time I make changes? why?

前端 未结 5 1527
情话喂你
情话喂你 2020-12-13 08:37

Every time I change anything in controller\'s or in models, I have to restart the server for it to take effect.But that wasn\'t always the case, it used to work normally bef

5条回答
  •  眼角桃花
    2020-12-13 09:30

    start your server using below command in console

    rails server -e development
    

    if not started then give your rails version and which sever you use for run rails application.

    more Configuration

    modify your config/environments/development.rb file to:

    config.serve_static_assets = false
    

提交回复
热议问题