DocPad: Get Ruby, SASS and DocPad working on Heroku
Getting Ruby, SASS and DocPad working on Heroku involves two steps:
Ensuring all your plugins are the latest version. Open up your
package.jsonand change all your docpad plugin dependency versions to
2.xand your docpad version to
6.x. Once done, run
rm -Rf node_modules; npm installto grab the latest versions of everything.
Installing Ruby and SASS on Heroku. Copy over the
Gemfile.lock, and the
.buildpacksfiles 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.gitto tell heroku to use multiple buildpacks. Once done, deploy to heroku via
git push heroku masterand you may need to run
heroku restartas sometimes the initial deploy fails.