0

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....

ralphearle
  • 1,696
  • 13
  • 18
aryanRaj_kary
  • 503
  • 2
  • 7
  • 28
  • Can you check Bluemix logs simultaneously? – RiyaMRoy Mar 23 '17 at 09:26
  • Yes did that, I only see this in logs Updated app with guid c14e5f4d-025a-4646-a24c-5ad7d7dd0593 ({"name"=>"mycgappname", "command"=>"PRIVATE DATA HIDDEN", "memory"=>256, "environment_json"=>"PRIVATE DATA HIDDEN"}) – aryanRaj_kary Mar 23 '17 at 09:45
  • Just for a test, try deleting node_modules, and push again. If it still says 48M, it's not node_modules – Ram Vennam Mar 24 '17 at 03:11

1 Answers1

1

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

Ram Vennam
  • 3,536
  • 1
  • 12
  • 19
  • still same, my cf version is cf version 6.23.0+c7866be-2016-12-22, will update cli and will give it a try again – aryanRaj_kary Mar 24 '17 at 02:52
  • I think encoding is the issue, when I opened the downloaded .cfignore in notepad, it was still showing ANSI, changed it to UTF-8 and saved it, working now. Thanks Ram. – aryanRaj_kary Mar 24 '17 at 03:51