Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- source_paths << File.dirname(__FILE__)
- gem 'pg', :group => :production
- gsub_file 'Gemfile', /.*sqlite.*/, ''
- append_file 'Gemfile' do
- "group :development do\n" +
- " gem 'heroku'\n" +
- " gem 'sqlite3-ruby', :require => 'sqlite3'\n" +
- "end\n"
- end
- apply 'base.rb'
- gsub_file 'config/environments/production.rb',
- /config.serve_static_assets = false/,
- 'config.serve_static_assets = true'
- data = <<-FILE
- Paste.config.serve_assets = true
- Paste.config.no_cache = true
- ActionView::Helpers::AssetTagHelper.cache_asset_timestamps = false
- config.app_middleware.insert_before Rack::Runtime,
- ::Rack::Static,
- :urls => ['/stylesheets'],
- :root => Rails.root.join('tmp').to_s
- FILE
- inject_into_file 'config/environments/production.rb', data,
- :after => 'config.active_support.deprecation = :notify'
- data = <<-FILE
- if Rails.env.production?
- output_style = :compressed
- css_dir = "tmp/stylesheets"
- end
- FILE
- gsub_file 'config/compass.rb', /output_style = :compressed.*/, data
- git :commit => '-a -m "Adding heroku configuration"'
Add Comment
Please, Sign In to add comment