Heroku one-click deploy
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Including work around for Heroku's broken interpretation of entrypoint
parent
6ec3fb47d1
commit
577e5b4afe
|
@ -7,4 +7,5 @@ RUN pip3 install --no-cache-dir /app[full] gunicorn
|
|||
|
||||
USER 1000:1000
|
||||
|
||||
ENTRYPOINT ["/app/docker-entry.sh"]
|
||||
ENTRYPOINT ["/bin/sh", "/app/docker-entry.sh"]
|
||||
CMD ["run"]
|
||||
|
|
|
@ -92,6 +92,10 @@ Then execute
|
|||
docker-compose build --no-cache --pull
|
||||
```
|
||||
|
||||
Using Heroku free tier:
|
||||
|
||||
[Deploy to Heroku](https://heroku.com/deploy?template=https://github.com/pictuga/morss)
|
||||
|
||||
## Run
|
||||
|
||||
morss will auto-detect what "mode" to use.
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"stack": "container",
|
||||
"env": {
|
||||
"CACHE": {
|
||||
"value": "diskcache",
|
||||
"required": false
|
||||
},
|
||||
"CACHE_SIZE": {
|
||||
"value": "1073741824",
|
||||
"required": false
|
||||
},
|
||||
"DEBUG": {
|
||||
"value": "1",
|
||||
"required": false
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
#! /bin/sh
|
||||
|
||||
if [ ! -z "$1" ]; then
|
||||
morss $@
|
||||
if [ -z "$1" ] || [ "$@" = "run" ]; then
|
||||
gunicorn --bind 0.0.0.0:${PORT:-8000} -w 4 --preload --access-logfile - morss
|
||||
else
|
||||
gunicorn --bind 0.0.0.0:8000 -w 4 --preload --access-logfile - morss
|
||||
morss $@
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue