superfly / fly

Deploy app servers close to your users. Package your app as a Docker image, and launch it in 17 cities with one simple CLI.
https://fly.io
985 stars 48 forks source link

Exclude dotfiles from .fly.yml files list #218

Closed michaeldwan closed 4 years ago

michaeldwan commented 5 years ago

Files and directories that begin with a . character should be ignored when expanding glob expressions.

For example, the config below would accidentally deploy .git/, .env, .fly/ which is both wasteful and a security risk.

files:
  - ./**

In the off chance a dotfile is expected to be deployed then it should be explicitly included in the files list.