Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
jakobsn 1d41b5a965 My projects complete pirms 6 gadiem
mysql Create project with users pirms 6 gadiem
src My projects complete pirms 6 gadiem
.gitignore more database tables and creating of projects. Bug encountered, sleep on it pirms 6 gadiem
README.md Making docs pirms 6 gadiem
app_structure.png Making docs pirms 6 gadiem
docker-compose.yml webserver launch before database ready pirms 6 gadiem

README.md

Simple python web application

Python webpy application running on uswgi server with nginx using docker connected to another docker-runned mysql database.

Web Server image: https://github.com/tiangolo/uwsgi-nginx-docker webpy framework: http://webpy.org/

Prerequisites:

docker https://www.docker.com/

Build & Run

$ docker-compose up --build

Prune/Recreate

If you need a fresh rebuild in case of startup issues use this command (WARNING this will remove all your docker images) $ docker system prune -a $ docker-compose up --build

Deploy locally

Prerequisites: mysql python3 src/app/requirements.txt

Run Datatbase:

Launch mysql at default port (3306) $ systemctl start mysqld Log in to database $ mysql -u -p Insert mysql queries “CREATE database db;” “USE db;” Then populate databse by posting mysql/sql/init.sql into mysql Edit src/app/models/database.py to point at local server Run app $ python3 src/app/main.py