Answering myself for documentation : you need to modify 3 files
in server.js (thanks plflannery : https://github.com/bevry/docpad/issues/819) :
var spawn = require('child_process').spawn
var args = ['server'];
spawn('node_modules/.bin/docpad', args, {stdio:'inherit'}).on('close', function(err) {
if (err)
console.log("docpad failed");
else
console.log("docpad running");
});
in docpad.coffee, put :
port: 8080
in docpadConfig fonction, to change default port (9778) to 8080, as required by Gandi, explanations here : https://github.com/bobobo1618/docpad-docum...
and in package.json put
"main": "server.js"
instead of
"main": "node_modules/docpad/bin/docpad-server"
So to launch docpad and install dependencies when deployment via Git.
Example of a working code : https://github.com/nylnook/nylnook-website
Good luck in your projects !