I needed to combine several solutions to make this work, here is what I did:
gem 'rails_12factor', group: :production
in my Heroku console
heroku labs:enable user-env-compile -a yourapp
config.serve_static_assets = true config.action_dispatch.x_sendfile_header="X-Accel-Redirect" config.assets.compile = true
I didn’t need to precompile the assets locally.
- Deploying RoR app to Heroku with SQLite 3 fails
- Rails: How to reference images in CSS within Rails 4
- Heroku deployment error H10 (App crashed)
- How to solve error “Missing `secret_key_base` for ‘production’ environment” (Rails 4.1)
- Rails 2.3-style plugins and deprecation warnings running task in Heroku
- Heroku push rejected, no Cedar-supported app detected
- heroku push error: “Could not detect rake tasks”
- Change from SQLite to PostgreSQL in a fresh Rails project
- Heroku Postgres Error: PGError: ERROR: relation “organizations” does not exist (ActiveRecord::StatementInvalid)
- Pushing Rails with SQLite3 to Heroku fails [duplicate]
- Heroku/devise – Missing host to link to! Please provide :host parameter or set default_url_options[:host]
- How to fix the uninitialized constant Rake::DSL problem on Heroku?
- How to configure Google Domains + Heroku w a Naked Domain
- HEROKU – cannot run git push heroku master [duplicate]
- Rails: “BCrypt::Errors::InvalidHash” when trying to sign in
- Heroku – Display hash of current commit in browser
- do..end vs curly braces for blocks in Ruby
- How can I call controller/view helper methods from the console in Ruby on Rails?
- Is there a way to get a collection of all the Models in your Rails app?
- How can I avoid running ActiveRecord callbacks?
- Rails 3 – can’t install pg gem
- accepts_nested_attributes_for with find_or_create?
- Best way to create custom config options for my Rails app?
- Can someone explain collection_select to me in clear, simple terms?
- Disable ActiveRecord for Rails 4
- How can I specify a local gem in my Gemfile?
- Remove ActiveRecord in Rails 3
- Rails 5: ActiveRecord OR query
- Rails has_many :through Find by Extra Attributes in Join Model
- How do I replace accented Latin characters in Ruby?
- Clean way to find ActiveRecord objects by id in the order specified
- Converting camel case to underscore case in ruby
- Difference between -%> and %> in rails [duplicate]
- STI, one controller
- Rails: Could not find railties
- Adding cookie session store back to Rails API app
- Why is using the rails default_scope often recommend against?
- Rails formatting date
- Rails migration for change column
- Rails 4.0 with Devise. Nested attributes Unpermited parameters
- gem install permission problem
- 400 Bad Request – request header or cookie too large
- How to get a Date from date_select or select_date in Rails?
- Can I write PostgreSQL functions on Ruby on Rails?
- Cannot install JSON gem in rails using windows
- Uploading multiple files with paperclip
- ImageMagick – “CORE_RL_magick_.dll not found” or how to install RMagick on windows with ruby 1.9.2
- Ruby / Rails – Change the timezone of a Time, without changing the value
- What to use instead of `render :text` (and `render nothing: true`) in rails 5.1 and later?
- Scope with join on :has_many :through association