Rails 3 - how to refresh updated code

2019-08-27 03:01发布

问题:

I have my RoR app on FTP and if I open some file through FTP and for example I will add to my view one line of text, then save this file back on FTP and refresh my page, so I don't see that one new line of text that I added.

I have to push COMMAND+R a few seconds a then sometimes I see in browser the new line of text...

It's terrible work, how can I update the file of my RoR project through FTP? (I can't use capistrano).

Thank tou.

回答1:

you can open tmp/restart.txt on your FTP server via any text editor and press Ctrl+S (save it), so file will be touched and server will be restarted