Compare commits

..

4 Commits

Author SHA1 Message Date
pictuga 502366db10 cloud-init open port
continuous-integration/drone Build is failing Details
continuous-integration/drone/push Build is failing Details
2021-11-30 23:08:37 +01:00
pictuga 296b69f40e cloud-init fix typo in pkg name 2021-11-30 22:43:05 +01:00
pictuga a2deb90185 drone: remove gevent leftover 2021-11-30 22:42:26 +01:00
pictuga 72024f2864 Remove default settings for gunicorn 2021-11-26 07:27:05 +01:00
4 changed files with 8 additions and 6 deletions

View File

@ -10,6 +10,6 @@ steps:
- name: pylint
image: alpine
commands:
- apk add --no-cache python3 py3-lxml py3-gevent py3-pip py3-wheel py3-pylint py3-enchant hunspell-en
- apk add --no-cache python3 py3-lxml py3-pip py3-wheel py3-pylint py3-enchant hunspell-en
- pip3 install --no-cache-dir .[full]
- 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:
- python3-pip
- python3-wheels
- python3-wheel
- python3-lxml
- git
- ca-certificates
@ -121,8 +121,10 @@ write_files:
runcmd:
- 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]
- gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN:---workers 4 --threads 4} --preload --access-logfile - morss
- gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN} --preload --access-logfile - morss
```
## Run

View File

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

View File

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