IBM Bluemix に cf push APP-NAME
すると、カレントディレクトリの中身が一切合財アップロードされる。
しかし、buildpacks で sdk-for-nodejs を使っている場合、node_modules 等はデプロイで自動的にインストール&キャッシュされるので、わざわざローカルのものを push する必要はない。
そこで、.cfignore
に不要なフォルダを指定しておく。
.cfignore
node_modules
scripts.es6
これで push が快適に。
参考
- Ignore Unnecessary Files When Pushing - Cloud Foundry Documentation