Documenting your Rails project's Node.js version in .nvmrc

Posted Almost 5 years ago by Henning Koch.

Not all versions of Node.js are compatible with each other. Also npm packages may require a minimum or maximum version...

no passenger served applications running error when deploying via capistrano

Posted Almost 5 years ago by Claus-Theodor Riegg.

When deploying with capistrano it's possible you get this "error" message: *** [err :: example.com] There are no Phusion Passenger-served...

Migration from the Asset Pipeline to Webpacker

Posted About 5 years ago by Emanuel.

This is a short overview of things that are required to upgrade a project from the Asset Pipeline to Webpacker...

During deployment: "You are trying to install in deployment mode after changing your Gemfile"

Posted About 5 years ago by Thomas Eisenbarth.

While deploying an Ruby update to an old application these days, we encountered the following misleading error: *** [err :: some-host.makandra.de] You...

Capistrano: Speeding up asset compile during deploy

Posted Over 5 years ago by Dominik Schöler.

Remember How to skip Sprockets asset compile during Capistrano deployment and Automatically skipping asset compilation when assets have not changed...

Minify Font Awesome fonts with webpack

Posted Over 5 years ago by Tobias Kraze.

Font Awesome 5 is a comprehensive solution for vector icons on your website. Originally, Font Awesome came as an icon...

How to let passenger restart after deployment with capistrano

Posted Over 5 years ago by Kim Klotz.
github.com

Phusion Passenger changed the way how it gets restarted several times. Through the project's history, these all were valid...

An incomplete guide to migrate a Rails application from paperclip to carrierwave

Posted Over 5 years ago by Emanuel.

In this example we assume that not only the storage gem changes but also the file structure on disc.

Capistrano + Rails: Tagging production deploys

Posted Almost 6 years ago by Dominik Schöler.

Just like Ruby Gems tag their version releases to the corresponding Git commit, it can be helpful to track production...

Capistrano + Rails: Automatically skipping asset compilation when assets have not changed

Posted Almost 6 years ago by Dominik Schöler.
makandracards.com

In medium-sized to large Rails applications, asset compilation can take several minutes. In order to speed up deployment, asset...

Capistrano task to tail remote application logs of multiple servers

Posted Almost 6 years ago by Arne Hartherz.

When your application is running on a multi-server setup, application logs are stored per server (unless you choose a...

How to make Capistrano not truncate server output

Posted About 6 years ago by Arne Hartherz.

By default, Capistrano truncates server responses and places an ellipsis at the end of lines that are longer than your...

How to skip Sprockets asset compile during Capistrano deployment

Posted About 6 years ago by Arne Hartherz.

For applications coming with lots of stylesheets and scripts, asset compilation might take quite long. This can be annoying when...

Decide whether cronjobs should run on one or all servers

Posted Over 6 years ago.

Understanding your type of cronjob Some cronjobs must only run on a single server. E.g. when you run nightly batch...

Capistrano: Doing things on rollback

Posted Almost 7 years ago by Dominik Schöler.

Capistrano has the concept of a "rollback" that comes in really handy in case of errors. When you notice that...

Capistrano 2: How to deploy a single server

Posted Almost 7 years ago by Dominik Schöler.

When you have a multi-server setup, you'll be adding a new server from time to time. Before doing...

Middleman: Use pretty URLs without doubling requests

Posted Almost 7 years ago by Henning Koch.

By default Middleman generates files with a .html extension. Because of this all your URLs end in /foo.html instead of...

Middleman configuration for Rails Developers

Posted Almost 7 years ago by Dominik Schöler.

Middleman is a static page generator that brings many of the goodies that Rails developers are used to.

Capistrano 3: How to deploy when a firewall blocks your git repo

Posted Almost 7 years ago by Tobias Kraze.

Sometimes, through some firewall or proxy misconfiguration, you might have to deploy to a server that cannot access the git...

ActiveRuby

Posted About 7 years ago by Henning Koch.
activestate.com

Looks like ActiveState is trying to market a new Ruby distribution for Enterprises: ActiveRuby Enterprise Edition is designed for businesses...

How to search through logs on staging or production environments

Posted About 7 years ago.

We generally use multiple application servers (at least two) and you have to search on all of them if you...

When upgrading/downgrading RubyGems and Bundler on a server, you must clear bundled gems

Posted About 7 years ago by Dominik Schöler.

On application servers, gems are usually bundled into the project directory, at a location shared across deployments. This is usually...

Geordi hints

Posted About 7 years ago by Dominik Schöler.
github.com

Reminder of what you can do with Geordi. Note: If you alias Geordi to something short like g, running commands...

How to tackle complex refactorings in big projects

Posted Over 7 years ago.

Sometimes huge refactorings or refactoring of core concepts of your application are necessary for being able to meet new requirements...