Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Foreman in 5 minutes

Foreman in 5 minutes

A Lightning talk I was forced to prepare with 20 minutes warning when they told me a "friend" signed me up for it.

It's about Foreman, a neat little utility to manage processes for web applications

Nicolás Sanguinetti

September 15, 2012
Tweet

More Decks by Nicolás Sanguinetti

Other Decks in Programming

Transcript

  1. Olá RS on Rails

    View Slide

  2. Sorry :(

    View Slide

  3. /foca

    View Slide

  4. I’m not even supposed
    to be here

    View Slide

  5. This
    Guy

    View Slide

  6. This
    Guy
    Yeah, he’s an asshole
    and ridiculous

    View Slide

  7. So, Foreman
    /ddollar/foreman

    View Slide

  8. web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
    worker: bundle exec sidekiq -c 25
    Procfile

    View Slide

  9. $ foreman start

    View Slide

  10. $ foreman run web

    View Slide

  11. .env
    # Database access
    DB_NAME=blank_slate
    DB_ADAPTER=postgresql
    DB_USER=
    DB_PASSWORD=

    View Slide

  12. $ foreman run rake db:setup

    View Slide

  13. http://ddollar.github.com/foreman/
    The manual

    View Slide

  14. Thanks!
    /foca
    /godfoca
    http://speakerdeck.com/u/foca/p/foreman-in-5-minutes

    View Slide

  15. …and remember,
    this guy is an
    asshole

    View Slide