我添加了一些代码并将其推送到我的git帐户上,并在服务器上进行拉取,还运行了命令
rake assets:precompile RAILS_ENV=production
并多次重启nginx
服务器。
在服务器上使用nano
命令编辑代码时,它显示已更新。
答案 0 :(得分:0)
如果您使用rails
+ nginx
+ passenger
,则可以输入服务器Rails应用程序的根目录,并使用touch tmp/restart.txt
重新启动Rails应用程序。因此会在浏览器上发生变化。
参考:https://www.phusionpassenger.com/library/admin/apache/restart_app.html#restart-txt