Skip to content

Bihan/ecommerce-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ecommerce-lab

python -m venv ecom
$source ecom/bin/activate
(ecom) bihan@Bihans-MacBook-Pro ecommerce-lab %

deactivate

pip install -r requirements.txt

pip show gunicorn pip show flask

$ gunicorn --bind 0.0.0.0:5001 market:app
$ gunicorn --reload --bind 0.0.0.0:5001 market:app
$ python market.py # 

$ gunicorn --workers 9 --threads 2 --bind 0.0.0.0:5001 market:app $ ps aux | grep gunicorn

$docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

docker system prune -a --volumes

docker build -t flask_app_image .

docker run -d -p 5001:5001 --name flask_app_container flask_app_image

docker stop flask_app_container

docker logs -f flask_app_container

docker rm flask_app_container

References

  1. https://www.youtube.com/watch?v=Qr4QMBUPxWo&t=555s
  2. https://github.com/jimdevops19/codesnippets/tree/main/Flask%20Full%20Series

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published