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

12 factor - Bonnes pratiques pour développer de...

12 factor - Bonnes pratiques pour développer des apps puissantes et scalables

Avec un petit peu de Docker dedans :)

Yann Klis

June 10, 2016
Tweet

More Decks by Yann Klis

Other Decks in Technology

Transcript

  1. Léo Unbekandt, CTO @Soulou Tech genius/polyglot, software engineer specialized in

    distributed and cloud computing Yann Klis, CEO @yannski Visionary, product guy with 10+ years experience in web development Entrepreneur (up to 10 employees) Fondateur Alsace Digitale
  2. Préconisations écrites par des gens de Heroku. Heroku suit ses

    préconisations (heureusement !) et vous aide à les suivre. Scalingo aussi...
  3. $ git push scalingo master <-- Start deployment of myapplication

    --> -----> Rails app detected Build complete, shipping your container... Waiting for your application to boot... <-- https://myapplication.scalingo.io --> $
  4. $ cat requirements.txt amqp==1.4.9 anyjson==0.3.3 billiard==3.3.0.23 celery==3.1.23 click==6.6 Flask==0.11.1 …

    $ cat Gemfile source "https://rubygems.org" ruby '2.3.2' gem 'rails', '4.2.6' gem 'mysql2' gem 'sass-rails', '~> 5.0' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.1.0' gem 'will_paginate', github: 'mislav/will_paginate' … $ cat package.json { "name": "sample-node-express", "engines": { "node": "4.1.x" }, "dependencies": { "express": "^4.11.2", "jade": "^1.9.2" } }
  5. $ cat Procfile web: bundle exec rails server -p $PORT

    -e $RAILS_ENV worker: bundle exec sidekiq clock: bundle exec clockwork lib/clock.rb