Miserlou/Zappa

Directories not excludable via zappa_settings.json

Open

#692 geöffnet am 26. Feb. 2017

Auf GitHub ansehen
 (27 Kommentare) (31 Reaktionen) (0 zugewiesene Personen)Python (1.286 Forks)batch import
help wanted

Repository-Metriken

Stars
 (11.903 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Context

Directories not ignored as expected. The zappa_settings.json looks like this. Note that I am using .gitignore notation for ignoring the directories.

https://github.com/nueverest/vue_flask/blob/master/zappa_settings.json

{
    "production": {
        "s3_bucket": "nueverest",
        "aws_region": "us-west-2",
        "app_function": "vue_flask.app",
        "delete_local_zip": false,
        "exclude": ["deployed/", "static/", "unit_tests/", "*.css", "*.js", "*.json", "*.csv", "*.ico"]
    }
}

Expected Behavior

I am expecting the folders named: deployed, static, and unit_tests to be excluded from the generated zip file.

Actual Behavior

When I open the generated zip file I see the folders that I thought were excluded. This increases the time it takes to deploy the app.

Possible Fix

Allow directory patterns to be excluded via zappa_settings, or document how it is currently implemented in the readme.

Your Environment

Contributor Guide