简体   繁体   中英

Changes made in rails app /public directory not reflecting on server

I have an replica of the live app that is deployed on the server. I have made some changes: like inserted 2 css and js files in /public directory that serves my assets and included in the views where they are required .It is working fine on my Local machine but when I pushed the changes to the server it is not reflecting over there. I am Using Nginx and I have tried restarting it as well but it didn't help either. As I am new to NGINX and the App is deployed on a centos I dont know how it works. I already have precompiled assets, So I don't know how to make it run. I have tried

Clearing the cache from tmp directory but didn't work.

I have set my

config.serve_static_assets = false

in my production.rb and tried restarting but didn't work either

Any help ??

Your views are cached in webserver workers. Have you restarted your web workers?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM