I have no idea why foreman exits when deprecation warning is reported in express, but you can eliminate this behavior replacing app.use(express.bodyParser());
with
app.use(express.json()); app.use(express.urlencoded());
connect.multipart()
will be removed from bodyParser
in next version of Connect and this is probably the issue. You can find more info in Connect documenattion and/or in this StackOverflow Q&A.