Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.61 KB

HEROKU.md

File metadata and controls

47 lines (30 loc) · 1.61 KB

Deploying koop-sample-app to Heroku

If you're short on time: Deploy

From Heroku Dev Center - Extensions, PostGIS... (accessed on 3/23/2016):

Currently, PostGIS can only be used on Production tier Heroku Postgres plans and on hobby plans.

If you'd like to learn more, below we explain what we did differently in the heroku branch to deploy koop with an IN_MEMORY cache so that we can utilize a free plan.

Instructions

A PostGIS store is recommended in production, but an IN_MEMORY store can be configured by following the steps below:

  1. Remove mention of a PostGIS database instance from config/default.json
// get rid of this part
"db": {
  "conn": "postgres://localhost/koopdev"
}
  1. Comment out the code which registers the PostGIS cache with koop in index.js
// comment out this stuff
var pgCache = require('koop-pgcache')

// and a little further down...

koop.registerCache(pgCache)

That's it!

Resources

License

Apache 2.0