mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Updating sls file - deployment working but dependencies not packages corectly
This commit is contained in:
parent
9d60c8998e
commit
fe8c37c179
3 changed files with 8130 additions and 3 deletions
8118
backend/package-lock.json
generated
Normal file
8118
backend/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
6
backend/package.json
Normal file
6
backend/package.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"devDependencies": {
|
||||||
|
"serverless-offline": "^12.0.4",
|
||||||
|
"serverless-python-requirements": "^6.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -6,7 +6,8 @@ provider:
|
||||||
region: eu-west-2
|
region: eu-west-2
|
||||||
environment:
|
environment:
|
||||||
API_KEY: ${env:API_KEY}
|
API_KEY: ${env:API_KEY}
|
||||||
ENVIRONMENT: ${self:provider.stage}
|
# ENVIRONMENT: ${self:provider.stage}
|
||||||
|
ENVIRONMENT: 'local'
|
||||||
SECRET_KEY: ${env:SECRET_KEY}
|
SECRET_KEY: ${env:SECRET_KEY}
|
||||||
ALGORITHM: ${env:ALGORITHM}
|
ALGORITHM: ${env:ALGORITHM}
|
||||||
|
|
||||||
|
|
@ -15,6 +16,7 @@ package:
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
- serverless-python-requirements
|
- serverless-python-requirements
|
||||||
|
- serverless-offline
|
||||||
|
|
||||||
custom:
|
custom:
|
||||||
pythonRequirements:
|
pythonRequirements:
|
||||||
|
|
@ -24,8 +26,9 @@ functions:
|
||||||
app:
|
app:
|
||||||
handler: app.main.handler
|
handler: app.main.handler
|
||||||
events:
|
events:
|
||||||
- http: ANY /
|
- http:
|
||||||
- http: 'ANY {proxy+}'
|
path: /{proxy+}
|
||||||
|
method: ANY
|
||||||
# vpc:
|
# vpc:
|
||||||
# securityGroupIds:
|
# securityGroupIds:
|
||||||
# - sg-0abcd1234efgh5678
|
# - sg-0abcd1234efgh5678
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue