Rails 3 - 如何刷新更新的代码 [英] Rails 3 - how to refresh updated code

查看:240
本文介绍了Rails 3 - 如何刷新更新的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在FTP上有我的RoR应用程序,如果我通过FTP打开某个文件,例如我将添加到我的视图一行文本,然后将此文件保存回FTP并刷新我的页面,所以我没有看到我添加的一行新文本。

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.

我必须将COMMAND + R按几秒钟,然后有时在浏览器中看到新的文本行...

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

这是非常糟糕的工作,我如何通过FTP更新我的RoR项目文件? (我不能用capistrano)。

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

感谢tou。

推荐答案

<您可以通过任何文本编辑器在您的FTP服务器上打开 tmp / restart.txt 并按Ctrl + S(保存),所以文件将为触及,服务器将重新启动

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

这篇关于Rails 3 - 如何刷新更新的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆