testing different structure

This commit is contained in:
Khalim Conn-Kowlessar 2023-07-19 11:28:24 +01:00
parent 754799a5ed
commit aaf15da491
2 changed files with 13 additions and 8 deletions

View file

@ -67,4 +67,4 @@ jobs:
SECRET_KEY: ${{ secrets.NEXTAUTH_SECRET }}
PLAN_TRIGGER_BUCKET: 'retrofit-plan-inputs-${{ github.ref_name }}'
DOMAIN_NAME: ${{ steps.set_domain.outputs.domain }}
run: cd backend && sls deploy --stage ${{ github.ref_name }} --verbose
run: sls deploy --stage ${{ github.ref_name }} --verbose

View file

@ -15,10 +15,15 @@ provider:
package:
individually: true
include:
- Model/backend/**
# Might need to refine the paths that are included
- Model/model_data/**
# include:
# - backend/**
# # Might need to refine the paths that are included
# - model_data/**
exclude:
- model_data/local_data/**
- infrastructure/**
- data_collection/**
- node_modules/**
plugins:
- serverless-python-requirements
@ -27,10 +32,10 @@ plugins:
custom:
pythonRequirements:
dockerizePip: true
dockerFile: docker/Dockerfile
dockerFile: backend/docker/Dockerfile
useDocker: true
dockerSsh: true
fileName: requirements/base.txt
# fileName: backend/requirements/base.txt
dockerBuildCmdExtraArgs:
- '--progress=plain'
customDomain:
@ -40,7 +45,7 @@ custom:
functions:
app:
handler: app.main.handler
handler: backend.app.main.handler
events:
- http:
path: /{proxy+}