Skip to content

Instantly share code, notes, and snippets.

@lawlesst
Last active September 26, 2015 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lawlesst/16f814d2ee6e350ddc23 to your computer and use it in GitHub Desktop.
Save lawlesst/16f814d2ee6e350ddc23 to your computer and use it in GitHub Desktop.
Notes on running ldf-server on Heroku with an HDT backend

September 25, 2015

Steps to run ldf-server on Heroku with an HDT backend.

  • Read the Node troubleshooting guide from Heroku for background.
  • Run the commands in the Start with a Blank Slate section of the guide.
  • Add package.json to your git repository if it isn't already.
  • For my project, I had to explicitly add hdt - 1.2.2 as a dependendency.

package.json

{
  "name": "my-ldf-app",
  "description": "a really cool app",
  "version": "0.0.1",
  "engines": {
    "node": "0.10.x",
    "npm": "2.13.4"
  },
  "dependencies": {
    "hdt": "^1.2.2",
    "ldf-server": "^1.1.6"
  }
}

Procfile

web: ldf-server config.json $PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment