I am trying to push a node application to Bluemix
using command
cf push <APP NAME> -c "node app.js"
The node app being pushed has few empty nested directories.
The app has an initialization code which needs those nested directories to exist. It uses them to copy and generate files in the runtime.
Problem :
When I push the app, the empty directories are not pushed[only other files and directories that are no empty are pushed] and hence when the application tries to locate it, it fail with
Error: ENOENT No such file or directory error.
The workaround is to add a random file to each of the directory[ so that they are no more empty] and then it gets pushed to the Bluemix(by Cloud Foundry).
Expectation :
How to push the empty directories while pushing an application to the Bluemix? These directories are empty initially but will be used later to generate and save file or documents when the app runs in Bluemix.