LoginSignup
10
7

More than 5 years have passed since last update.

BK:Bluemix に cf push するときは、.cfignore で不要なフォルダを除外すべし

Posted at

IBM Bluemix に cf push APP-NAME すると、カレントディレクトリの中身が一切合財アップロードされる。

しかし、buildpacks で sdk-for-nodejs を使っている場合、node_modules 等はデプロイで自動的にインストール&キャッシュされるので、わざわざローカルのものを push する必要はない。

そこで、.cfignore に不要なフォルダを指定しておく。

.cfignore
node_modules
scripts.es6

これで push が快適に。

参考

10
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
7