book a call

estimate project

The belighted Blog

Rubymine & Foreman

by Kévin V., on 6 November 2013

Rubymine is a fantastic IDE that goes above and beyond in letting you keep and/or improve your existing workflows.

Foreman allows you to easily manage your runtime dependencies, such as Redis, Delayed Jobs, etc. It is the system used by Heroku, which is another good argument for using it in development if your projects are hosted there.

One of my first customization needs was to be able to easily start/stop Foreman and see its output without leaving the IDE. Turns out it’s really easy.

Of course, you’ll need to have foreman installed.

gem install foreman

In Rubymine, go to “Edit Configurations” from the main toolbar.

edit configurations

Click on the “+” icon and select “Gem Command”.

gem command

Input “foreman” for the gem name and the executable name, and “start” as the command argument. You can leave the other defaults as is.

gem command name

And that’s it. As long as you already have a Procfile in your project directory, you’re good to go. Here’s an example of the result :

gem command result

Note that “Gem Command” can have a lot of other clever uses. Be creative. :)

Topics:      Under the hood

What is SaaS?

Everything You Need to Know About Moving to a SaaS Model.

Get the guide now >

Subscribe to Updates