http://api.heroku.com/signup
http://heroku.com/myapps
gem install heroku
heroku create <nom_du_projet> #Spécifier une autre pile : heroku create <nom_du_projet> --stack bamboo-ree-1.8.7 #Migration vers une autre pile : heroku stack:migrate bamboo-ree-1.8.7 #The migration will be completed after you git push and a new slug is successfully compiled
http://heroku.com/myapps
git remote add <nom_alias> git@heroku.com:<nom_du_projet>.git
git push <nom_alias>
heroku keys:remove <keyname>
heroku keys:add ~/.ssh/id_rsa.pub #ou heroku keys:add #demandera email
heroku keys
gem install tap apt-get install libsqlite3-dev
#Depuis heroku heroku db:pull mysql://root:mypass@localhost/mydb #Vers heroku heroku db:push
heroku config:add DATABASE_URL=mysql://username:password@host/databasename
heroku console puts File.read(Rails.configuration.database_configuration_file)
http://status.heroku.com/
Camping Coset Halcyon Mack Maveric Merb Racktools::SimpleApplication Ramaze Ruby on Rails Rum Sinatra Sin Vintage Waves Weeexemple :
http://blog.jerodsanto.net/2009/05/3-reasons-why-heroku-is-a-game-changer/
http://installed-gems.heroku.com
http://docs.heroku.com/gems
hpricot --version '>= 0.2' --source code.whytheluckystiff.net dm-core --version 0.9.10 formtastic --ignore-dependencies
http://installed-gems.heroku.comet n'écrire que les gems qui ne sont pas déjà installés dans la pile.
namespace :gems do desc "Génère le fichier Manifest .gems pour Heroku" task :heroku_spec =>> :environment do require 'open-uri' installed_gems = [] url = "http://installed-gems.heroku.com/" open(url).read.scan(/<li>(\w+) [^<]*<\/li>/) do |w| installed_gems << w.first end gems = Rails.configuration.gems # output .gems dot_gems = File.join(RAILS_ROOT, ".gems") File.open(dot_gems, "w") do |f| output = [] gems.each do |gem| next if installed_gems.include?(gem.name) spec = "#{gem.name} --version '#{gem.version_requirements.to_s}'" spec << " --source #{gem.source}" if gem.source output << spec end f.write output.join("\n") puts output.join("\n") end end end
http://github.com/glennr/heroku_san
heroku create katana-production --remote production heroku create katana-staging --remote staging heroku create katana-qa --remote qa
Now, when you want to deploy code to a particular environment, do so by specifying the appropriate remote:
git push staging master
And if you need to run migrations:
heroku rake db:migrate --remote staging
Finally, you will probably want to periodically copy your production data into your staging environment:
heroku db:pull --remote production heroku db:push --remote stagingKeep in mind that any environment variables you create or add-ons you add must be duplicated across environments for a consistent experience.
dyno 1/4 de coeur de CPU un seule requête traitée en même temps 10 à 100 requêtes / seconde 438€ / an par dyno en plus slugs The maximum slug size is 100MB. Most apps should be far below this size. Anything under 10MB is good. If you exceed 50MB, you should think about trying to lean down your app.
script/plugin install git://github.com/heroku/sass_on_heroku.git
http://www.webfaction.com/services/hostingQuestion : capacité processeur des serveurs ?
Plan RAM Storage BW Monthly Cost 256 slice 256MB 10GB 150GB $20/mois
http://www.slicehost.com/
http://www.linode.com/index.cfm
http://rimuhosting.com/order/startorder1.jsp?hom=t-vps
Base Monthly Price | Memory Options | Data Transfer Allowance | Disk Space Options | IPs |
---|---|---|---|---|
29.95 USD | 400MB | 40GB-150GB | 4GB-8GB | 2 |