Simple Overmind

Public
Simple overmind setup
Used 1 time
Created by
A Adrian Marin

Usage

Run this command in your Rails app directory in the terminal:

rails app:template LOCATION="https://railsbytes.com/script/zr4sjq"
Template Source

Review the code before running this template on your machine.

create_file 'Procfile.dev' do <<~EOF
    web: rails server
  EOF
end

create_file 'bin/dev' do <<~EOF
#!/usr/bin/env sh

PORT="${PORT:-3000}"
export PORT

if command -v overmind &> /dev/null; then
  overmind start -f Procfile.dev "$@"
else
  foreman start -f Procfile.dev "$@"
fi
EOF
end
Comments

Sign up or Login to leave a comment.