how do you efficiently debug a live server in rails, be it on a beta server?
I tried changing the file directly on the server and restarting the application, but the changes did not seem to take effect, or took a lot of time (caching?)
I also tried to do "script / server production" locally, but it is very slow
Another option is code and deployment, but it is very inefficient.
Does anyone know how they do this efficiently?
I will answer your question, even if I do not agree with this method of hotpatching the server code :)
-, , ? , .
, , . tmp/cache. , rake tmp:cache:clear, . , , , log/production.log ( - " ..." ).
tmp/cache
rake tmp:cache:clear
log/production.log
: . ( , EG, , rake db:sessions:clear)
rake db:sessions:clear
, :
RAILS_ENV=production script/server
script/server --environment=production
, , webrick/mongrel , (, Apache Passenger?). , .
, ? , , , restart.txt /tmp ( ), Apache Mongrel, . , , , .
, production.log, . , . . Capistrano, 3 (, push ), , .