Summer Sale! All accounts are 50% off this week.

Baldor's avatar

Include only pattern

Configuration question.

Bref.sh (serverless.yml) config file allows one to define "patterns" of files to be zipped for Lambda. Does Vapor provide anything similar? https://bref.sh/docs/environment/serverless-yml.html#exclusions

  patterns:
    - '!**' # exclude all
    - 'app/**'
    - 'bootstrap/**'
    - 'config/**'
    - 'public/index.php'
    - 'resources/view/**'
    - 'routes/**'
    - 'artisan'

Currently we have to do something like:

    build:
      - 'rm .editorconfig'
      - 'rm .env.example'
      - 'rm .styleci.yml'
      - 'rm migration.md'

This required to know every "unwanted" file beforehand

0 likes
0 replies

Please or to participate in this conversation.