Getting Ruby, SASS and DocPad working on Heroku involves two steps:
-
Ensuring all your plugins are the latest version. Open up your
package.json
and change all your docpad plugin dependency versions to2.x
and your docpad version to6.x
. Once done, runrm -Rf node_modules; npm install
to grab the latest versions of everything. -
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 runheroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git
to tell heroku to use multiple buildpacks. Once done, deploy to heroku viagit push heroku master
and you may need to runheroku restart
as sometimes the initial deploy fails.