Permalink
Browse files

Deploying with Heroku:

* Add Gems required by Heroku so that your Gemfile has these lines

gem 'heroku'
gem 'execjs'
gem 'therubyracer'

group :production do
  gem 'pg'
end

group :development do
  gem 'sqlite3'
end

* Configure Heroku production environment to compile assets by
Open config/production.rb and set compile to true
config.assets.compile = true

* Install Gems and commit to repository
bundle install
git add .
git commit -a
git push

* Configure Heroku for this application, enter Heroku credentials if prompted
heroku create
* Heroku will configure Git remote to point to created server
* To automatically deploy this application to Internet
git push heroku master
  • Loading branch information...
1 parent f426c9c commit b56c50c8dae6cf6ab5b0fcf4c2967772912285ec @assimovt assimovt committed with assimovt Nov 18, 2011
Showing with 36 additions and 2 deletions.
  1. +15 −1 Gemfile
  2. +20 −0 Gemfile.lock
  3. +1 −1 config/environments/production.rb
View
16 Gemfile
@@ -5,7 +5,19 @@ gem 'rails', '3.1.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
-gem 'sqlite3'
+# Heroku needed gems
+gem 'heroku'
+gem 'execjs'
+gem 'therubyracer'
+
+# Heroku does not support SQLite, use PostgreSQL instead
+group :production do
+ gem 'pg'
+end
+
+group :development do
+ gem 'sqlite3'
+end
gem 'json'
@@ -31,3 +43,5 @@ gem 'jquery-rails'
# To use debugger
# gem 'ruby-debug'
+gem 'heroku'
+
View
@@ -29,6 +29,7 @@ GEM
activesupport (= 3.1.1)
activesupport (3.1.1)
multi_json (~> 1.0)
+ addressable (2.2.6)
arel (2.2.1)
builder (3.0.0)
coffee-rails (3.1.1)
@@ -41,18 +42,27 @@ GEM
erubis (2.7.0)
execjs (1.2.9)
multi_json (~> 1.0)
+ heroku (2.14.0)
+ launchy (>= 0.3.2)
+ rest-client (~> 1.6.1)
+ rubyzip
+ term-ansicolor (~> 1.0.5)
hike (1.2.1)
i18n (0.6.0)
jquery-rails (1.0.17)
railties (~> 3.0)
thor (~> 0.14)
json (1.6.1)
+ launchy (2.0.5)
+ addressable (~> 2.2.6)
+ libv8 (3.3.10.4)
mail (2.3.0)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.17.2)
multi_json (1.0.3)
+ pg (0.11.0)
polyglot (0.3.3)
rack (1.3.5)
rack-cache (1.1)
@@ -81,6 +91,9 @@ GEM
rake (0.9.2.2)
rdoc (3.11)
json (~> 1.4)
+ rest-client (1.6.7)
+ mime-types (>= 1.16)
+ rubyzip (0.9.4)
sass (3.1.10)
sass-rails (3.1.4)
actionpack (~> 3.1.0)
@@ -93,6 +106,9 @@ GEM
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.4)
+ term-ansicolor (1.0.7)
+ therubyracer (0.9.9)
+ libv8 (~> 3.3.10)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
@@ -108,9 +124,13 @@ PLATFORMS
DEPENDENCIES
coffee-rails (~> 3.1.1)
+ execjs
+ heroku
jquery-rails
json
+ pg
rails (= 3.1.1)
sass-rails (~> 3.1.4)
sqlite3
+ therubyracer
uglifier (>= 1.0.3)
@@ -15,7 +15,7 @@
config.assets.compress = true
# Don't fallback to assets pipeline if a precompiled asset is missed
- config.assets.compile = false
+ config.assets.compile = true
# Generate digests for assets URLs
config.assets.digest = true

0 comments on commit b56c50c

Please sign in to comment.