Compare commits

..

No commits in common. "502366db1097b41166e3a70f6722a9e3b5170a6d" and "440f7d679708838a09d5413770ad644aecc8f1d5" have entirely different histories.

4 changed files with 6 additions and 8 deletions

View File

@ -10,6 +10,6 @@ steps:
- name: pylint - name: pylint
image: alpine image: alpine
commands: commands:
- apk add --no-cache python3 py3-lxml py3-pip py3-wheel py3-pylint py3-enchant hunspell-en - apk add --no-cache python3 py3-lxml py3-gevent py3-pip py3-wheel py3-pylint py3-enchant hunspell-en
- pip3 install --no-cache-dir .[full] - pip3 install --no-cache-dir .[full]
- pylint morss --rcfile=.pylintrc --disable=C,R,W --fail-under=8 - pylint morss --rcfile=.pylintrc --disable=C,R,W --fail-under=8

View File

@ -107,7 +107,7 @@ Providers supporting `cloud-init` (AWS, Oracle Cloud Infrastructure), based on U
packages: packages:
- python3-pip - python3-pip
- python3-wheel - python3-wheels
- python3-lxml - python3-lxml
- git - git
- ca-certificates - ca-certificates
@ -121,10 +121,8 @@ write_files:
runcmd: runcmd:
- update-ca-certificates - update-ca-certificates
- iptables -I INPUT 6 -m state --state NEW -p tcp --dport {PORT:-8000} -j ACCEPT
- netfilter-persistent save
- pip install git+https://git.pictuga.com/pictuga/morss.git#egg=morss[full] - pip install git+https://git.pictuga.com/pictuga/morss.git#egg=morss[full]
- gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN} --preload --access-logfile - morss - gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN:---workers 4 --threads 4} --preload --access-logfile - morss
``` ```
## Run ## Run

View File

@ -5,8 +5,8 @@
"value": 1, "value": 1,
"required": false "required": false
}, },
"GUNICORN": { "WORKERS": {
"value": "", "value": 4,
"required": false "required": false
}, },
"CACHE": { "CACHE": {

View File

@ -4,7 +4,7 @@ if [ "$1" = "sh" ] || [ "$1" = "bash" ]; then
exec $@ exec $@
elif [ -z "$1" ] || [ "$@" = "run" ]; then elif [ -z "$1" ] || [ "$@" = "run" ]; then
gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN} --preload --access-logfile - morss gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN:---workers 4 --threads 4} --preload --access-logfile - morss
else else
morss $@ morss $@