Search code examples
ibm-cloudcloud-foundrydevops-services

cf push does not consider .cfignore


I am trying to push a node project to Bluemix, and I wanted the cf to ignore the node_modules in my project, so I have this below line in my .cfignore file (at the root of the application)

node_modules/

When I issue the cf push --random-route command, it says that it is loading 48M, 284 files. I think 48M is 48MB of files, so I think the cf push is not considering the .cfignore file. The upload takes lot of time.

Uploading 48M, 284 files 19.4M uploaded....


Solution

  • It can be a file encoding issue. Try deleting the file and downloading this one directly. (File-> Save)

    https://raw.githubusercontent.com/IBM-Bluemix/get-started-node/master/.cfignore