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 to2.xand your docpad version to6.x. Once done, runrm -Rf node_modules; npm installto grab the latest versions of everything. -
Installing Ruby and SASS on Heroku. Copy over the
Gemfile,Gemfile.lock, and the.buildpacksfiles from https://github.com/docpad/sass-heroku-test to your own website. Then runheroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.gitto tell heroku to use multiple buildpacks. Once done, deploy to heroku viagit push heroku masterand you may need to runheroku restartas sometimes the initial deploy fails.