Skip to content

Latest commit

 

History

History
38 lines (21 loc) · 840 Bytes

File metadata and controls

38 lines (21 loc) · 840 Bytes

Web Server to preserve camera images on Render.com

This repo aims to save images captured to a service on render.com.

Setup of local environment on your machine (not a raspberry pi)

Clone this repo

git clone 

Create a virtual environment

python3 -m venv ./venv-server
source venv-server/bin/activate

Install the dependencies

pip install -r requirements.txt

Setup the .env file

Copy the .env-example-local file to .env and fill in the values.

cp .env-example-local .env

Then use your editor to edit the .env file.

Development mode run server

gunicorn main:app -b 127.0.0.1:5000 --reload

Production mode run server

gunicorn main:app -b 0.0.0.0:8080