I received the answer on a cloudfoundry forum (cloudfoundry.zendesk.com):
"The key indicator for Cloud Foundry that you are staging a node application is the presence of a 'package.json' file. Create one in your application folder with basic information and it should work."
I added a 'package.json' and now it works.