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

Easy way to prevent Heroku idling?

You can install the free New Relic add-on. It has an availability monitor feature that will ping your site twice per minute, thus preventing the dyno from idling. More or less the same solution as Jesse but maybe more integrated to Heroku… And with a few perks (performance monitoring is just great). Note: to all … Read more