forked from activate/ActivateHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile.heroku
30 lines (21 loc) · 876 Bytes
/
Gemfile.heroku
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Gemfile modifications needed by Heroku
#
# To regenerate the Gemfile.heroku.lock file:
#
# $> BUNDLE_GEMFILE="Gemfile.heroku" bundle install
#
#---[ Heroku Settings ]-----------------------------------------------------
# heroku requires ruby version on own line (reps for version, not evals)
ruby '1.9.3'
# enable serving of static assets on production
ENV['STATIC_ASSETS'] = 'true'
# prevents sqlite3 gem from getting into lock file (heroku can't compile it)
DB_ADAPTER = 'postgresql'
#---[ internal, move along... ]---------------------------------------------
base_dir = File.dirname(__FILE__) # top-level project directory
# we need to start with common lock file to avoid upgrading everything
unless File.exist? "#{__FILE__}.lock"
require 'fileutils'
FileUtils.cp "#{base_dir}/Gemfile.lock", "#{__FILE__}.lock"
end
eval File.read("#{base_dir}/Gemfile")