Force my heroku app to use SSL (https)

On Heroku, it’s slightly tricky to determine the fact that the request came in over http. https is handled at a heroku routing layer and it passes along the request to the node app on http). This post got me unstuck http://jaketrent.com/post/https-redirect-node-heroku/

No permanent filesystem for Heroku?

It is true. Heroku allows you to create cloud apps, but those cloud apps are not “permanent” – they are instances (or “slugs”) that can be replicated multiple times on Amazon’s EC2 (that’s why scaling is so easy with Heroku). If you were to push a new version of your app, then the slug will … Read more

Redeploy Heroku app without code changes

Normally setting a config var causes your application to be restarted. In most situations there should be no need to redeploy after doing this. If you really do need to trigger a new deployment you can add a new empty commit, then push to Heroku again: git commit –allow-empty -m “Trigger Heroku deploy after enabling … Read more

Heroku does NOT compile files under assets pipelines in Rails 4

Heroku’s asset plugins no longer work since Rails 4 does not support plugins. You need to use Heroku’s asset gems instead. Place this in your Gemfile: group :production do gem ‘rails_log_stdout’, github: ‘heroku/rails_log_stdout’ gem ‘rails3_serve_static_assets’, github: ‘heroku/rails3_serve_static_assets’ end Follow Heroku’s guide on getting started with Rails 4. Update (07/22/2013): Heroku now supplies a different gem … Read more