Answer the question
In order to leave comments, you need to log in
What is the optimal structure and algorithm for deploying a Python application?
The tasks that I set to determine the directory structure and the algorithm for deploying a new version of the application using the example of a django-based application:
example.com (~)
├── /conf
│ ├── nginx.conf
│ ├── uwsgi.conf
├── /logs
│ ├── exmaple.com_access.log
│ ├── example.com_error.log
│ ├── uwsgi.log
├── /tmp
│ ├── reload-uwsgi (touch file)
│ ├── uwsgi.pid
├── /htdocs (www)
│ ├── /media --> ~/shared/media
│ ├── /static --> ~/shared/static
├── /releases
│ ├── /20140312195611
│ │ ├── /venv
│ │ │ ├── /bin
│ │ │ │ ├── python
│ │ │ │ ├── pip
│ │ ├── /<repository_root> - VCS (git,...)
│ │ │ ├── /docs
│ │ │ ├── /<project_name> - Django project
│ │ │ │ ├── /<project_name>
│ │ │ │ │ ├── settings.py
│ │ │ │ │ ├── urls.py
│ │ │ │ ├── manage.py
├── /current --> ~/releases/20140312195611
├── /shared
│ ├── /media
│ ├── /static
Answer the question
In order to leave comments, you need to log in
Why create deep directory trees when you can use a version control system (like Git)? As the product develops, each new version can develop in a separate branch. If you want to roll back to a certain version, you just take the code from the required branch... Playing with catalogs will not lead to anything good, especially if several people are working on the project
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question