Skip to content

Instantly share code, notes, and snippets.

@kylelix7
Created November 8, 2019 06:11
Show Gist options
  • Save kylelix7/1e8363878bba07f629b7d877104e8ef0 to your computer and use it in GitHub Desktop.
Save kylelix7/1e8363878bba07f629b7d877104e8ef0 to your computer and use it in GitHub Desktop.
serverless.yml
service: stock-backend
plugins:
- serverless-python-requirements
- serverless-wsgi
custom:
wsgi:
app: app.app
packRequirements: false
pythonRequirements:
dockerizePip: non-linux
zip: true
slim: true
provider:
name: aws
runtime: python3.7
stage: prod
region: us-west-2
functions:
app:
handler: wsgi.handler
events:
- http: ANY /
- http: 'ANY {proxy+}'
package:
exclude:
- node_modules/**
- venv/**
- data/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment