Skip to content

Instantly share code, notes, and snippets.

@balupton
Last active December 9, 2015 23:18
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balupton/4342818 to your computer and use it in GitHub Desktop.
Save balupton/4342818 to your computer and use it in GitHub Desktop.
DocPad: Get Ruby, SASS and DocPad working on Heroku

DocPad: Get Ruby, SASS and DocPad working on Heroku

Getting Ruby, SASS and DocPad working on Heroku involves two steps:

  1. Ensuring all your plugins are the latest version. Open up your package.json and change all your docpad plugin dependency versions to 2.x and your docpad version to 6.x. Once done, run rm -Rf node_modules; npm install to grab the latest versions of everything.

  2. Installing Ruby and SASS on Heroku. Copy over the Gemfile, Gemfile.lock, and the .buildpacks files from https://github.com/docpad/sass-heroku-test to your own website. Then run heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git to tell heroku to use multiple buildpacks. Once done, deploy to heroku via git push heroku master and you may need to run heroku restart as sometimes the initial deploy fails.

@alvinsj
Copy link

alvinsj commented Sep 21, 2015

heroku has some updates to enable multiple buildpacks
https://devcenter.heroku.com/changelog-items/653

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment