Giter Club home page Giter Club logo

divide's Introduction

Divide

Gem Version

Start Procfile processes in different Terminal/iTerm tabs.

I’m well aware of foreman, but it starts all processes in the same tab which can be inconvenient.
I’m well aware of tmux, but obviously not everyone’s using it (if you do, check out teamocil).

Usage

$ gem install divide
$ divide

Options

Divide is option-free. You may however overwrite any options of your Procfile processes by passing them to divide.

# Procfile
web: bundle exec unicorn -c ./config/unicorn.rb
$ divide -c ./another_folder/unicorn.rb
# => bundle exec unicorn -c ./another_folder/unicorn.rb

ENV

Divide automatically loads .env file and overwrite any $VARIABLE of your processes.

# .env
PORT=1337
RACK_ENV=development
# Procfile
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb -E $RACK_ENV
$ divide
# => bundle exec unicorn -p 1337 -c ./config/unicorn.rb -E development

$PORT

If you don’t specify a port, Divide will overwrite $PORT with 5000.

# Procfile
web: bundle exec rails s -p $PORT
$ divide
# => bundle exec rails s -p 5000

Changelog

0.1.3

  • Add :from option

0.1.2

  • Ignore .env file comments

0.1.1

  • Always open an empty tab after all processes are executed

0.1.0

  • iTerm opens new processes into split panes (see 85bc235)
  • Make sure all the options are being replaced

0.0.3

  • Fix bug when there are double quotes in Procfile

0.0.2

  • iTerm.app support
  • Automatically load .env file
  • Open new tabs in current directory

Contributing

Why yes! You’re welcome to submit any issue or pull request as long as everything’s green when you bundle exec rake spec. Meanwhile, you can give these folks a tap on the back for helping out:

License

Copyright © 2013 Etienne Lemay. See LICENSE for details.

divide's People

Contributors

etiennelem avatar remi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

remi

divide's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.