Change default port to 8000
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
5473b77416
commit
70a5a0759e
10
README.md
10
README.md
|
@ -73,7 +73,7 @@ Build & run
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker build --tag morss https://git.pictuga.com/pictuga/morss.git --no-cache --pull
|
docker build --tag morss https://git.pictuga.com/pictuga/morss.git --no-cache --pull
|
||||||
docker run -p 8080:8080 morss
|
docker run -p 8000:8000 morss
|
||||||
```
|
```
|
||||||
|
|
||||||
With docker-compose:
|
With docker-compose:
|
||||||
|
@ -84,7 +84,7 @@ services:
|
||||||
build: https://git.pictuga.com/pictuga/morss.git
|
build: https://git.pictuga.com/pictuga/morss.git
|
||||||
image: morss
|
image: morss
|
||||||
ports:
|
ports:
|
||||||
- '8080:8080'
|
- '8000:8000'
|
||||||
```
|
```
|
||||||
|
|
||||||
Then execute
|
Then execute
|
||||||
|
@ -132,13 +132,13 @@ gunicorn --preload morss
|
||||||
Running this command should do:
|
Running this command should do:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
uwsgi --http :8080 --plugin python --wsgi-file main.py
|
uwsgi --http :8000 --plugin python --wsgi-file main.py
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Using morss' internal HTTP server
|
#### Using morss' internal HTTP server
|
||||||
|
|
||||||
Morss can run its own, **very basic**, HTTP server, meant for debugging mostly.
|
Morss can run its own, **very basic**, HTTP server, meant for debugging mostly.
|
||||||
The latter should start when you run morss without any argument, on port 8080.
|
The latter should start when you run morss without any argument, on port 8000.
|
||||||
I'd highly recommend you to use gunicorn or something similar for better
|
I'd highly recommend you to use gunicorn or something similar for better
|
||||||
performance.
|
performance.
|
||||||
|
|
||||||
|
@ -331,7 +331,7 @@ servers)
|
||||||
|
|
||||||
To pass environment variables:
|
To pass environment variables:
|
||||||
|
|
||||||
- Docker-cli: `docker run -p 8080:8080 morss --env KEY=value`
|
- Docker-cli: `docker run -p 8000:8000 morss --env KEY=value`
|
||||||
- docker-compose: add an `environment:` section in the .yml file
|
- docker-compose: add an `environment:` section in the .yml file
|
||||||
- Gunicorn/uWSGI/CLI: prepend `KEY=value` before the command
|
- Gunicorn/uWSGI/CLI: prepend `KEY=value` before the command
|
||||||
- Apache: via the `SetEnv` instruction (see sample `.htaccess` provided)
|
- Apache: via the `SetEnv` instruction (see sample `.htaccess` provided)
|
||||||
|
|
|
@ -37,7 +37,7 @@ from . import caching, crawler, readabilite
|
||||||
from .morss import (DELAY, TIMEOUT, FeedFetch, FeedFormat, FeedGather,
|
from .morss import (DELAY, TIMEOUT, FeedFetch, FeedFormat, FeedGather,
|
||||||
MorssException, Options, log)
|
MorssException, Options, log)
|
||||||
|
|
||||||
PORT = int(os.getenv('PORT', 8080))
|
PORT = int(os.getenv('PORT', 8000))
|
||||||
|
|
||||||
|
|
||||||
def parse_options(options):
|
def parse_options(options):
|
||||||
|
|
Loading…
Reference in New Issue