Compare commits
4 Commits
440f7d6797
...
502366db10
Author | SHA1 | Date |
---|---|---|
pictuga | 502366db10 | |
pictuga | 296b69f40e | |
pictuga | a2deb90185 | |
pictuga | 72024f2864 |
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
4
app.json
4
app.json
|
@ -5,8 +5,8 @@
|
|||
"value": 1,
|
||||
"required": false
|
||||
},
|
||||
"WORKERS": {
|
||||
"value": 4,
|
||||
"GUNICORN": {
|
||||
"value": "",
|
||||
"required": false
|
||||
},
|
||||
"CACHE": {
|
||||
|
|
|
@ -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 $@
|
||||
|
|
Loading…
Reference in New Issue