Skip to content

🔔Work In Progress: WSGI server using Docker

Notifications You must be signed in to change notification settings

kharysharpe/docker-wsgi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OVERVIEW

NB Document Root is webapp/current/public

You must place your WSGI application within this folder

Why? This allows for continuous deployment in production using zero downtime techniques. Zero downtime method pulls code from a repository into a new folder and then creates a symbol link to current to this new folder.

Make the required folder

mkdir -p webapp/current/public

From a git repository

cd webapp
git clone https://repo current

DEVELOPMENT

Building Running the local (development) container environment

./container build:dev

Running the local (development) container environment

./container watch

Running the local (development) container environment detached

./container dev

Switching to python container

./container shell [<container>]

Postgres is available on port 5432, database webapp is created by default.

PRODUCTION

Building the production container environment

./container build [<container>]

Running the production container environment

./container start [<container>]

Restarting the production container environment

./container restart [<container>]