We generally use multiple application servers (at least two) and you have to search on all of them if you...
When your application is running on a multi-server setup, application logs are stored per server (unless you choose a...
When your site is mapped into the URL-space of another server using mod_proxy, ProxyPass and ProxyPassReverse, all requests...
This Capistrano task runs a command on all servers. bundle exec cap production app:run cmd='zgrep -P "..." RAILS_ROOT/log/production.log...
The ActiveSupport::BroadcastLogger allows you to log to multiple sinks. You know this behavior from from the rails server command...
There is a reasonable simple way to move data between Redis servers: Simply temporarily configure the new server as a...
Getting CSS (and JS) live reloading to work in a esbuild / Rails project is a bit of a hassle, but...
In this example we assume that not only the storage gem changes but also the file structure on disc.
This may be awkward to set up, but will work once you're done. Fun facts:
Starting from Rails 4.0, you can use a special form options helper called #collection_check_boxes. It behaves similar to...
To upload a file via AJAX (e.g. from an ) you need to wrap your params in a FormData object.
To show the MySQL default character set you have to login to the MySQL console and execute SHOW VARIABLES LIKE...
When you get an error like this: Invalid gemspec in [/opt/www/foo-project.makandra.de/shared/bundle/ruby/1.8/specifications/carrierwave-0.6.2.gemspec]: Illformed requirement ["# 1.1.4"] ... the machine's Rubygems needs to...
Sometimes, through some firewall or proxy misconfiguration, you might have to deploy to a server that cannot access the git...
From time to time we're convinced that an error must be very close to the network card, OS IP...
Enable local logging for Sentry when: Debugging Sentry event capture locally Testing error handling without polluting production metrics Developing background...
Crontabs are often unordered, especially when generated for an application where you usually group tasks by their domain/scope.
Capistrano automatically logs each (successful) deployment into a file on your application servers. It is located at the root of...
If your application raises an error like ... Couldn't connect to the Solr server at http://127.0.0.1:8983/solr. 500 "Lock...
It might sometimes be useful to check whether your Rails application accesses the file system unnecessarily, for example if your...
When Rack::Bug has been added to your project and your Apache2/Passenger only replies with an Error 500 (Internal Server...
Connect to your IMAP server. If you have SSL enabled: openssl s_client -connect your-server:993 if your server...
If you want to have a new log file every day automatically, but avoid using logrotate, the CustomLog directive is...
This is for those who already own an SSL certificate (e.g. using it in the Apache HTTP Server) and need...