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

Uploading your app to Heroku

Uploading your app to Heroku

Rails Girls Frankfurt 2015 Talk by Sönke Ohls

Rails Girls Frankfurt

September 19, 2015
Tweet

More Decks by Rails Girls Frankfurt

Other Decks in Education

Transcript

  1. The most essential feature of the internet

    View Slide

  2. The most essential feature of the internet is
    to publish to the world

    View Slide

  3. Sönke Ohls (@freizeitnerd) | Heroku Talk | Rails Girls Frankfurt a.M. :date => 2015-09-19 :slide => 3

    View Slide

  4. publish your code
    Sönke Ohls (@freizeitnerd) | Heroku Talk | Rails Girls Frankfurt a.M. :date => 2015-09-19 :slide => 4

    View Slide

  5. publish your app
    Hosting Server
    Production
    Environment
    Sönke Ohls (@freizeitnerd) | Heroku Talk | Rails Girls Frankfurt a.M. :date => 2015-09-19 :slide => 5

    View Slide

  6. Production
    Environment
    publish your app
    Sönke Ohls (@freizeitnerd) | Heroku Talk | Rails Girls Frankfurt a.M. :date => 2015-09-19 :slide => 6

    View Slide

  7. get started
    # Gemfile
    group :development do
    gem 'sqlite3'
    end
    group :production do
    gem 'pg'
    gem 'rails_12factor'
    end
    Prepare Gemfile
    Sönke Ohls (@freizeitnerd) | Heroku Talk | Rails Girls Frankfurt a.M. :date => 2015-09-19 :slide => 7
    Dont forget to bundle install
    Development
    Production

    View Slide

  8. get started
    Sign up at heroku.com
    Sönke Ohls (@freizeitnerd) | Heroku Talk | Rails Girls Frankfurt a.M. :date => 2015-09-19 :slide => 8

    View Slide

  9. Production
    Environment
    publish your app
    Sönke Ohls (@freizeitnerd) | Heroku Talk | Rails Girls Frankfurt a.M. :date => 2015-09-19 :slide => 9
    1. Create the app online (just once)
    $> heroku create
    2. Push/update your app online
    $> git push heroku master
    It is just 2 steps

    View Slide

  10. let me show that by live coding

    View Slide

  11. Production
    Environment
    wrap-up
    1. Sign up at heroku.com
    2. Prepare your Gemfile
    3. In the console:
    $> heroku create
    $> git push heroku master
    # Gemfile
    group :development do
    gem 'sqlite3'
    end
    group :production do
    gem 'pg'
    gem 'rails_12factor'
    end
    Sönke Ohls (@freizeitnerd) | Heroku Talk | Rails Girls Frankfurt a.M. :date => 2015-09-19 :slide => 11

    View Slide