Skip to content

Commit

Permalink
Fix dockerrun command for uwsgi usage
Browse files Browse the repository at this point in the history
  • Loading branch information
onegreyonewhite committed Sep 16, 2019
1 parent efc30c0 commit 6e46eb3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion polemarch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
"VST_ROOT_URLCONF": os.getenv("VST_ROOT_URLCONF", 'vstutils.urls'),
}

__version__ = "1.4.5"
__version__ = "1.4.4"

prepare_environment(**default_settings)
2 changes: 2 additions & 0 deletions polemarch/main/settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from collections import OrderedDict
from vstutils.settings import *

WEBSERVER_COMMAND = 'webserver'

POLEMARCH_VERSION = PROJECT_VERSION
APACHE = False if ("runserver" in sys.argv) else True

Expand Down
6 changes: 6 additions & 0 deletions polemarch/web.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ program_name = %(lib_name)
module = %(program_name).wsgi:application

# number of workers
if-not-opt = processes
processes = %k
endif=

# number of threads per worker
if-not-opt = threads
threads = 2
endif=

# PID-file for service
if-not-opt = pidfile
pidfile = /var/run/%(program_name)/web.pid
endif=

# Fix mime types
mimefile = /etc/mime.types
Expand Down
2 changes: 1 addition & 1 deletion requirements-doc.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Docs
vstutils[doc]~=2.8.1
vstutils[doc]~=2.8.2
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Main
vstutils[rpc,ldap,doc,prod]~=2.8.1
vstutils[rpc,ldap,doc,prod]~=2.8.2
docutils==0.15.2
markdown2==2.3.8

Expand Down

0 comments on commit 6e46eb3

Please sign in to comment.