This project uses Google Cloud Functions that serve specific purposes
Set up a virtual environment and install the dependencies of requirements.txt:
python -m venv venv
source venv/bin/activate
pip install -r requirements.txtfunctions-framework --target="FUNCTION_NAME" --debug --source="RELATIVE_PATH_TO_MAIN" --port="PORT"Example:
functions-framework --target=upload_blob --debug --source=upload_blob/main.py --port=8080gcloud functions deploy [FUNCTION_NAME] --env-vars-file .env.yaml --runtime python37 --trigger-httpExample:
gcloud functions deploy upload_blob --env-vars-file .env.yaml --runtime python37 --trigger-http