SlideShare a Scribd company logo
1 of 28
Download to read offline
< StartupDecode /> 
Cloud 101: 
Hands-on Heroku & AWS 
Meetup #01 
With 
Amine Sadry 
Happy developer 
Startupdecode 
Mathieu Cadet 
Account Manager 
Amazon Web Services 
meetup.com/startupDecode @startupdecode /startupDecode /user/startupDecode
< Program /> 
1. What is cloud computing ? (20 min ) 
2. Cloud computing on AWS (30 min) 
3. Hands-on Heroku (30 min) 
4. Hands-on AWS (40 min) 
5. Apéro Networking (30 min) 
www.startupdecode.com
What is cloud 
computing ?
< Nightmare /> 
● Rack space 
● Power 
● Cooling 
● Disaster recovery 
www.startupdecode.com By Fleshas via Wikimedia Commons
< Virtualization /> 
Server Server 
Application 
Operating System 
www.startupdecode.com 
Hardware 
Virtualization Layer 
Hardware 
A 
OS 
VM 
A 
OS 
VM 
A 
OS 
VM
< Cloud is tech /> 
● Virtualization 
● automation 
● Elasticity 
www.startupdecode.com
< Cloud is business model /> 
● Pay as you go 
● Self-service 
● Computing as utility 
www.startupdecode.com
< Benefits /> 
● No investment 
● No maintenance 
● No admin expertise 
● IT on Demand 
● Scalability 
● Focus on core business 
www.startupdecode.com
< Deployment models /> 
Public Hybrid Private 
Available to general public 
www.startupdecode.com 
Mix of both 
Available to solely one 
organisation 
Infrastructure owned by a 
provider of cloud services Infrastructure owned by the 
organisation or a third party
< Service models /> 
IaaS PaaS SaaS 
Application 
Database 
Runtime 
Virtual Machine 
Hardware 
www.startupdecode.com 
Application 
Runtime 
OS 
Virtual Machine 
Hardware 
Application 
Database 
Runtime 
OS 
Virtual Machine 
Hardware 
OS 
Database
Cloud computing 
on AWS
< AWS /> 
www.startupdecode.com
Hands-on Heroku
< Prerequisite /> 
● Install Ruby on Rails: http://installrails.com 
● Create account on heroku.com 
● Install toolbelt kit: https://toolbelt.heroku.com 
● Create account on http://aws.amazon.com 
● Install ImageMagick http://www.imagemagick.org 
www.startupdecode.com
< Install app /> 
3. Install gems 
www.startupdecode.com 
$ git clone git@github.com:StartupDecode/lcapp.git 
1. Clone 
2. Go into rails project 
$ cd lcapp 
$ bundle install
< Install Database/> 
1. Migrate Database 
2. Populate Database 
$ rake db:seed 
3. restart server 
www.startupdecode.com 
$ rake db:migrate 
$ rails server
< Update GemFile/> 
1. Update Gemfile and run bundle install 
group :development do 
gem 'sqlite3' 
end 
group :production do 
gem 'pg' 
gem 'rails_12factor' 
gem 'rails_log_stdout', github: 'heroku/rails_log_stdout' 
gem 'rails3_serve_static_assets', github: 'heroku/rails3_serve_static_assets' 
end 
www.startupdecode.com
< Heroku app /> 
1. Create heroku app 
2. Track updated files 
www.startupdecode.com 
$ heroku apps:create lcapp-xxx 
$ git add . 
$ git commit -m “add heroku config” 
3. Commit
< Deploy /> 
1. Push to heroku 
2. Migrate production database 
$ heroku run rake db:migrate 
3. Populate production database 
www.startupdecode.com 
$ git push heroku master 
$ heroku run rake db:seed
< Create S3 Bucket /> 
www.startupdecode.com
< Create IAM User /> 
www.startupdecode.com
< Create IAM Group /> 
www.startupdecode.com
< Add secret Key /> 
1. Add bucket name 
$ heroku config:set AWS_BUCKET=your_bucket_name 
2. Add access key ID 
$ heroku config:set AWS_ACCESS_KEY_ID=your_aws_access_key_id 
3. Add secret access key 
$ heroku config:set AWS_SECRET_ACCESS_KEY=your_aws_secret_key 
www.startupdecode.com
< S3 config /> 
1. Add S3 gem and run bundle install 
gem 'aws-sdk' 
2. Add production config 
config.paperclip_defaults = { 
www.startupdecode.com 
:storage => :s3, 
:s3_credentials => { 
:bucket => ENV['AWS_BUCKET'], 
:access_key_id => ENV['AWS_ACCESS_KEY_ID'], 
:secret_access_key => ENV['AWS_SECRET_ACCESS_KEY'] 
} 
}
< Deploy /> 
1. Install gem 
2. Track changes 
$ git add . 
3. Commit changes 
$ git commit -m “add S3 config” 
4. Push to heroku 
www.startupdecode.com 
$ bundle install 
$ git push heroku master
Hands-on AWS
< AWS /> 
www.startupdecode.com
< StartupDecode /> 
Next meetup: 
Object-oriented programming 
A bientôt 
meetup.com/startupDecode @startupdecode /startupDecode /user/startupDecode

More Related Content

What's hot

Esta Radio Es Autostart Para Tu Blog
Esta Radio Es Autostart Para Tu BlogEsta Radio Es Autostart Para Tu Blog
Esta Radio Es Autostart Para Tu Blogguest3845ab
 
Puppeteer - Headless Chrome Node API
Puppeteer - Headless Chrome Node APIPuppeteer - Headless Chrome Node API
Puppeteer - Headless Chrome Node APIWilson Su
 
Building a js widget
Building a js widgetBuilding a js widget
Building a js widgetTudor Barbu
 
Service Worker 201 (en)
Service Worker 201 (en)Service Worker 201 (en)
Service Worker 201 (en)Chang W. Doh
 
Javascript MVVM with Vue.JS
Javascript MVVM with Vue.JSJavascript MVVM with Vue.JS
Javascript MVVM with Vue.JSEueung Mulyana
 
Vue 淺談前端建置工具
Vue 淺談前端建置工具Vue 淺談前端建置工具
Vue 淺談前端建置工具andyyou
 
Drive chrome(headless) with puppeteer
Drive chrome(headless) with puppeteerDrive chrome(headless) with puppeteer
Drive chrome(headless) with puppeteerVodqaBLR
 
CasperJS and PhantomJS for Automated Testing
CasperJS and PhantomJS for Automated TestingCasperJS and PhantomJS for Automated Testing
CasperJS and PhantomJS for Automated TestingX-Team
 
Service worker - Offline Web
Service worker - Offline WebService worker - Offline Web
Service worker - Offline WebBruno Oliveira
 
Building a Startup Stack with AngularJS
Building a Startup Stack with AngularJSBuilding a Startup Stack with AngularJS
Building a Startup Stack with AngularJSFITC
 
Superfast Automated Web Testing with CasperJS & PhantomJS
Superfast Automated Web Testing with CasperJS & PhantomJS Superfast Automated Web Testing with CasperJS & PhantomJS
Superfast Automated Web Testing with CasperJS & PhantomJS Hervé Vũ Roussel
 
Ansible Configuring Windows
Ansible Configuring WindowsAnsible Configuring Windows
Ansible Configuring Windowsjoehack3r
 
Gordian knot presentation
Gordian knot presentationGordian knot presentation
Gordian knot presentationJim Osowski
 

What's hot (20)

Esta Radio Es Autostart Para Tu Blog
Esta Radio Es Autostart Para Tu BlogEsta Radio Es Autostart Para Tu Blog
Esta Radio Es Autostart Para Tu Blog
 
Puppeteer - Headless Chrome Node API
Puppeteer - Headless Chrome Node APIPuppeteer - Headless Chrome Node API
Puppeteer - Headless Chrome Node API
 
Up & running with jasmine
Up & running with jasmineUp & running with jasmine
Up & running with jasmine
 
Building a js widget
Building a js widgetBuilding a js widget
Building a js widget
 
Service Worker 201 (en)
Service Worker 201 (en)Service Worker 201 (en)
Service Worker 201 (en)
 
Vue.js for beginners
Vue.js for beginnersVue.js for beginners
Vue.js for beginners
 
Bleeding edge web stuff
Bleeding edge web stuffBleeding edge web stuff
Bleeding edge web stuff
 
Javascript MVVM with Vue.JS
Javascript MVVM with Vue.JSJavascript MVVM with Vue.JS
Javascript MVVM with Vue.JS
 
Vue 淺談前端建置工具
Vue 淺談前端建置工具Vue 淺談前端建置工具
Vue 淺談前端建置工具
 
Drive chrome(headless) with puppeteer
Drive chrome(headless) with puppeteerDrive chrome(headless) with puppeteer
Drive chrome(headless) with puppeteer
 
Magento++
Magento++Magento++
Magento++
 
CasperJS and PhantomJS for Automated Testing
CasperJS and PhantomJS for Automated TestingCasperJS and PhantomJS for Automated Testing
CasperJS and PhantomJS for Automated Testing
 
Jquery
JqueryJquery
Jquery
 
Service worker - Offline Web
Service worker - Offline WebService worker - Offline Web
Service worker - Offline Web
 
Building a Startup Stack with AngularJS
Building a Startup Stack with AngularJSBuilding a Startup Stack with AngularJS
Building a Startup Stack with AngularJS
 
Superfast Automated Web Testing with CasperJS & PhantomJS
Superfast Automated Web Testing with CasperJS & PhantomJS Superfast Automated Web Testing with CasperJS & PhantomJS
Superfast Automated Web Testing with CasperJS & PhantomJS
 
Jasmine with JS-Test-Driver
Jasmine with JS-Test-DriverJasmine with JS-Test-Driver
Jasmine with JS-Test-Driver
 
Ansible Configuring Windows
Ansible Configuring WindowsAnsible Configuring Windows
Ansible Configuring Windows
 
Mojolicious
MojoliciousMojolicious
Mojolicious
 
Gordian knot presentation
Gordian knot presentationGordian knot presentation
Gordian knot presentation
 

Viewers also liked

The Layman's Guide to Microsoft Azure
The Layman's Guide to Microsoft AzureThe Layman's Guide to Microsoft Azure
The Layman's Guide to Microsoft AzureAptera Inc
 
AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)Amazon Web Services
 
Microsoft Azure vs Amazon Web Services (AWS) Services & Feature Mapping
Microsoft Azure vs Amazon Web Services (AWS) Services & Feature MappingMicrosoft Azure vs Amazon Web Services (AWS) Services & Feature Mapping
Microsoft Azure vs Amazon Web Services (AWS) Services & Feature MappingIlyas F ☁☁☁
 

Viewers also liked (7)

Cloud Security (AWS)
Cloud Security (AWS)Cloud Security (AWS)
Cloud Security (AWS)
 
Fortinet
FortinetFortinet
Fortinet
 
The Layman's Guide to Microsoft Azure
The Layman's Guide to Microsoft AzureThe Layman's Guide to Microsoft Azure
The Layman's Guide to Microsoft Azure
 
AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)
 
Microsoft Azure vs Amazon Web Services (AWS) Services & Feature Mapping
Microsoft Azure vs Amazon Web Services (AWS) Services & Feature MappingMicrosoft Azure vs Amazon Web Services (AWS) Services & Feature Mapping
Microsoft Azure vs Amazon Web Services (AWS) Services & Feature Mapping
 
AWS Architecting In The Cloud
AWS Architecting In The CloudAWS Architecting In The Cloud
AWS Architecting In The Cloud
 
Azure Cloud PPT
Azure Cloud PPTAzure Cloud PPT
Azure Cloud PPT
 

Similar to Cloud 101: Hands-on Heroku & AWS

GCP - GCE, Cloud SQL, Cloud Storage, BigQuery Basic Training
GCP - GCE, Cloud SQL, Cloud Storage, BigQuery Basic TrainingGCP - GCE, Cloud SQL, Cloud Storage, BigQuery Basic Training
GCP - GCE, Cloud SQL, Cloud Storage, BigQuery Basic TrainingSimon Su
 
AWS Cyber Security Best Practices
AWS Cyber Security Best PracticesAWS Cyber Security Best Practices
AWS Cyber Security Best PracticesDoiT International
 
Integrating Jira Software Cloud With the AWS Code Suite
Integrating Jira Software Cloud With the AWS Code SuiteIntegrating Jira Software Cloud With the AWS Code Suite
Integrating Jira Software Cloud With the AWS Code SuiteAtlassian
 
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...Tenchi Security
 
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...Alexandre Sieira
 
Ci/CD - Stop wasting time, Automate your deployments
Ci/CD  - Stop wasting time, Automate your deploymentsCi/CD  - Stop wasting time, Automate your deployments
Ci/CD - Stop wasting time, Automate your deploymentsJerry Jalava
 
Continuous Delivery of Cloud Applications with Docker Containers and IBM Bluemix
Continuous Delivery of Cloud Applications with Docker Containers and IBM BluemixContinuous Delivery of Cloud Applications with Docker Containers and IBM Bluemix
Continuous Delivery of Cloud Applications with Docker Containers and IBM BluemixFlorian Georg
 
Taming the Cloud Database with Apache jclouds, ApacheCon Europe 2014
Taming the Cloud Database with Apache jclouds, ApacheCon Europe 2014Taming the Cloud Database with Apache jclouds, ApacheCon Europe 2014
Taming the Cloud Database with Apache jclouds, ApacheCon Europe 2014zshoylev
 
10 Excellent Ways to Secure Spring Boot Applications - Okta Webinar 2020
10 Excellent Ways to Secure Spring Boot Applications - Okta Webinar 202010 Excellent Ways to Secure Spring Boot Applications - Okta Webinar 2020
10 Excellent Ways to Secure Spring Boot Applications - Okta Webinar 2020Matt Raible
 
Masterless Puppet Using AWS S3 Buckets and IAM Roles
Masterless Puppet Using AWS S3 Buckets and IAM RolesMasterless Puppet Using AWS S3 Buckets and IAM Roles
Masterless Puppet Using AWS S3 Buckets and IAM RolesMalcolm Duncanson, CISSP
 
AWS Application Migration Service-Hands-On Guide
AWS Application Migration Service-Hands-On GuideAWS Application Migration Service-Hands-On Guide
AWS Application Migration Service-Hands-On GuideManas Mondal
 
Cloud Run - the rise of serverless and containerization
Cloud Run - the rise of serverless and containerizationCloud Run - the rise of serverless and containerization
Cloud Run - the rise of serverless and containerizationMárton Kodok
 
Big Data Step-by-Step: Infrastructure 3/3: Taking it to the cloud... easily.....
Big Data Step-by-Step: Infrastructure 3/3: Taking it to the cloud... easily.....Big Data Step-by-Step: Infrastructure 3/3: Taking it to the cloud... easily.....
Big Data Step-by-Step: Infrastructure 3/3: Taking it to the cloud... easily.....Jeffrey Breen
 
TDC2016SP - Construindo Microserviços usando Spring Cloud
TDC2016SP - Construindo Microserviços usando Spring CloudTDC2016SP - Construindo Microserviços usando Spring Cloud
TDC2016SP - Construindo Microserviços usando Spring Cloudtdc-globalcode
 
JavaOne 2014: Taming the Cloud Database with jclouds
JavaOne 2014: Taming the Cloud Database with jcloudsJavaOne 2014: Taming the Cloud Database with jclouds
JavaOne 2014: Taming the Cloud Database with jcloudszshoylev
 
Deploy Angular to the Cloud (ngBucharest)
Deploy Angular to the Cloud (ngBucharest)Deploy Angular to the Cloud (ngBucharest)
Deploy Angular to the Cloud (ngBucharest)Simona Cotin
 
C fowler azure-dojo
C fowler azure-dojoC fowler azure-dojo
C fowler azure-dojosdeconf
 
PVS-Studio: analyzing pull requests in Azure DevOps using self-hosted agents
PVS-Studio: analyzing pull requests in Azure DevOps using self-hosted agentsPVS-Studio: analyzing pull requests in Azure DevOps using self-hosted agents
PVS-Studio: analyzing pull requests in Azure DevOps using self-hosted agentsAndrey Karpov
 
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...CodeMill digital skills
 

Similar to Cloud 101: Hands-on Heroku & AWS (20)

GCP - GCE, Cloud SQL, Cloud Storage, BigQuery Basic Training
GCP - GCE, Cloud SQL, Cloud Storage, BigQuery Basic TrainingGCP - GCE, Cloud SQL, Cloud Storage, BigQuery Basic Training
GCP - GCE, Cloud SQL, Cloud Storage, BigQuery Basic Training
 
AWS Cyber Security Best Practices
AWS Cyber Security Best PracticesAWS Cyber Security Best Practices
AWS Cyber Security Best Practices
 
Integrating Jira Software Cloud With the AWS Code Suite
Integrating Jira Software Cloud With the AWS Code SuiteIntegrating Jira Software Cloud With the AWS Code Suite
Integrating Jira Software Cloud With the AWS Code Suite
 
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
 
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
Shopping for Vulnerabilities - How Cloud Service Provider Marketplaces can He...
 
Ci/CD - Stop wasting time, Automate your deployments
Ci/CD  - Stop wasting time, Automate your deploymentsCi/CD  - Stop wasting time, Automate your deployments
Ci/CD - Stop wasting time, Automate your deployments
 
Continuous Delivery of Cloud Applications with Docker Containers and IBM Bluemix
Continuous Delivery of Cloud Applications with Docker Containers and IBM BluemixContinuous Delivery of Cloud Applications with Docker Containers and IBM Bluemix
Continuous Delivery of Cloud Applications with Docker Containers and IBM Bluemix
 
Taming the Cloud Database with Apache jclouds, ApacheCon Europe 2014
Taming the Cloud Database with Apache jclouds, ApacheCon Europe 2014Taming the Cloud Database with Apache jclouds, ApacheCon Europe 2014
Taming the Cloud Database with Apache jclouds, ApacheCon Europe 2014
 
10 Excellent Ways to Secure Spring Boot Applications - Okta Webinar 2020
10 Excellent Ways to Secure Spring Boot Applications - Okta Webinar 202010 Excellent Ways to Secure Spring Boot Applications - Okta Webinar 2020
10 Excellent Ways to Secure Spring Boot Applications - Okta Webinar 2020
 
Masterless Puppet Using AWS S3 Buckets and IAM Roles
Masterless Puppet Using AWS S3 Buckets and IAM RolesMasterless Puppet Using AWS S3 Buckets and IAM Roles
Masterless Puppet Using AWS S3 Buckets and IAM Roles
 
AWS Application Migration Service-Hands-On Guide
AWS Application Migration Service-Hands-On GuideAWS Application Migration Service-Hands-On Guide
AWS Application Migration Service-Hands-On Guide
 
TDC 2016 - Arquitetura Java - Spring Cloud
TDC 2016 - Arquitetura Java - Spring CloudTDC 2016 - Arquitetura Java - Spring Cloud
TDC 2016 - Arquitetura Java - Spring Cloud
 
Cloud Run - the rise of serverless and containerization
Cloud Run - the rise of serverless and containerizationCloud Run - the rise of serverless and containerization
Cloud Run - the rise of serverless and containerization
 
Big Data Step-by-Step: Infrastructure 3/3: Taking it to the cloud... easily.....
Big Data Step-by-Step: Infrastructure 3/3: Taking it to the cloud... easily.....Big Data Step-by-Step: Infrastructure 3/3: Taking it to the cloud... easily.....
Big Data Step-by-Step: Infrastructure 3/3: Taking it to the cloud... easily.....
 
TDC2016SP - Construindo Microserviços usando Spring Cloud
TDC2016SP - Construindo Microserviços usando Spring CloudTDC2016SP - Construindo Microserviços usando Spring Cloud
TDC2016SP - Construindo Microserviços usando Spring Cloud
 
JavaOne 2014: Taming the Cloud Database with jclouds
JavaOne 2014: Taming the Cloud Database with jcloudsJavaOne 2014: Taming the Cloud Database with jclouds
JavaOne 2014: Taming the Cloud Database with jclouds
 
Deploy Angular to the Cloud (ngBucharest)
Deploy Angular to the Cloud (ngBucharest)Deploy Angular to the Cloud (ngBucharest)
Deploy Angular to the Cloud (ngBucharest)
 
C fowler azure-dojo
C fowler azure-dojoC fowler azure-dojo
C fowler azure-dojo
 
PVS-Studio: analyzing pull requests in Azure DevOps using self-hosted agents
PVS-Studio: analyzing pull requests in Azure DevOps using self-hosted agentsPVS-Studio: analyzing pull requests in Azure DevOps using self-hosted agents
PVS-Studio: analyzing pull requests in Azure DevOps using self-hosted agents
 
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...
 

Cloud 101: Hands-on Heroku & AWS

  • 1. < StartupDecode /> Cloud 101: Hands-on Heroku & AWS Meetup #01 With Amine Sadry Happy developer Startupdecode Mathieu Cadet Account Manager Amazon Web Services meetup.com/startupDecode @startupdecode /startupDecode /user/startupDecode
  • 2. < Program /> 1. What is cloud computing ? (20 min ) 2. Cloud computing on AWS (30 min) 3. Hands-on Heroku (30 min) 4. Hands-on AWS (40 min) 5. Apéro Networking (30 min) www.startupdecode.com
  • 3. What is cloud computing ?
  • 4. < Nightmare /> ● Rack space ● Power ● Cooling ● Disaster recovery www.startupdecode.com By Fleshas via Wikimedia Commons
  • 5. < Virtualization /> Server Server Application Operating System www.startupdecode.com Hardware Virtualization Layer Hardware A OS VM A OS VM A OS VM
  • 6. < Cloud is tech /> ● Virtualization ● automation ● Elasticity www.startupdecode.com
  • 7. < Cloud is business model /> ● Pay as you go ● Self-service ● Computing as utility www.startupdecode.com
  • 8. < Benefits /> ● No investment ● No maintenance ● No admin expertise ● IT on Demand ● Scalability ● Focus on core business www.startupdecode.com
  • 9. < Deployment models /> Public Hybrid Private Available to general public www.startupdecode.com Mix of both Available to solely one organisation Infrastructure owned by a provider of cloud services Infrastructure owned by the organisation or a third party
  • 10. < Service models /> IaaS PaaS SaaS Application Database Runtime Virtual Machine Hardware www.startupdecode.com Application Runtime OS Virtual Machine Hardware Application Database Runtime OS Virtual Machine Hardware OS Database
  • 12. < AWS /> www.startupdecode.com
  • 14. < Prerequisite /> ● Install Ruby on Rails: http://installrails.com ● Create account on heroku.com ● Install toolbelt kit: https://toolbelt.heroku.com ● Create account on http://aws.amazon.com ● Install ImageMagick http://www.imagemagick.org www.startupdecode.com
  • 15. < Install app /> 3. Install gems www.startupdecode.com $ git clone git@github.com:StartupDecode/lcapp.git 1. Clone 2. Go into rails project $ cd lcapp $ bundle install
  • 16. < Install Database/> 1. Migrate Database 2. Populate Database $ rake db:seed 3. restart server www.startupdecode.com $ rake db:migrate $ rails server
  • 17. < Update GemFile/> 1. Update Gemfile and run bundle install group :development do gem 'sqlite3' end group :production do gem 'pg' gem 'rails_12factor' gem 'rails_log_stdout', github: 'heroku/rails_log_stdout' gem 'rails3_serve_static_assets', github: 'heroku/rails3_serve_static_assets' end www.startupdecode.com
  • 18. < Heroku app /> 1. Create heroku app 2. Track updated files www.startupdecode.com $ heroku apps:create lcapp-xxx $ git add . $ git commit -m “add heroku config” 3. Commit
  • 19. < Deploy /> 1. Push to heroku 2. Migrate production database $ heroku run rake db:migrate 3. Populate production database www.startupdecode.com $ git push heroku master $ heroku run rake db:seed
  • 20. < Create S3 Bucket /> www.startupdecode.com
  • 21. < Create IAM User /> www.startupdecode.com
  • 22. < Create IAM Group /> www.startupdecode.com
  • 23. < Add secret Key /> 1. Add bucket name $ heroku config:set AWS_BUCKET=your_bucket_name 2. Add access key ID $ heroku config:set AWS_ACCESS_KEY_ID=your_aws_access_key_id 3. Add secret access key $ heroku config:set AWS_SECRET_ACCESS_KEY=your_aws_secret_key www.startupdecode.com
  • 24. < S3 config /> 1. Add S3 gem and run bundle install gem 'aws-sdk' 2. Add production config config.paperclip_defaults = { www.startupdecode.com :storage => :s3, :s3_credentials => { :bucket => ENV['AWS_BUCKET'], :access_key_id => ENV['AWS_ACCESS_KEY_ID'], :secret_access_key => ENV['AWS_SECRET_ACCESS_KEY'] } }
  • 25. < Deploy /> 1. Install gem 2. Track changes $ git add . 3. Commit changes $ git commit -m “add S3 config” 4. Push to heroku www.startupdecode.com $ bundle install $ git push heroku master
  • 27. < AWS /> www.startupdecode.com
  • 28. < StartupDecode /> Next meetup: Object-oriented programming A bientôt meetup.com/startupDecode @startupdecode /startupDecode /user/startupDecode