Commit 5424a87f authored by nono's avatar nono 💻
Browse files

Update README, add webpack as prod dep

parent a839c490
Pipeline #2806 failed with stages
in 4 minutes and 12 seconds
......@@ -40,10 +40,15 @@ os.environ["DJANGO_SECRET_KEY"]
os.environ["DJANGO_SITE_ID"]
```
You'll also need to define a DJANGO_ALLOWED_HOSTS containing
the FQDN of the RP before being able to run in production
You'll also need to define
If DEBUG is defined as True, ALLOWED_HOSTS is set to allow connections
```python
os.environ["DJANGO_ALLOWED_HOSTS"]
```
containing the FQDN of the RP before being able to run in production.
**Warning** :If DEBUG is defined as True, ALLOWED_HOSTS is set to allow connections
from any hosts.
## Database
......@@ -74,6 +79,10 @@ To launch the dev server :
$ python manage.py runserver
```
## Installation in production
You can use any uWSGI server configuration to run it as a normal Django app. See [this tutorial for more information.](https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04).
## Tests
To launch tests install requirements-tests.txt
......
{
"name": "lqdn-rp",
"version": "0.1.0",
"version": "0.1.1",
"description": "Revue de presse de La Quadrature du Net",
"main": "index.js",
"repository": "gitlab@git.laquadrature.net:la-quadrature-du-net/rpteam/rp.git",
......@@ -14,7 +14,9 @@
"tether": "^2.0.0",
"select2": "^4.0.13",
"select2-bootstrap-theme": "^0.1.0-beta.10",
"simplemde": "^1.11.2"
"simplemde": "^1.11.2",
"webpack": "^5.51.1",
"webpack-cli": "^4.8.0"
},
"devDependencies": {
"css-loader": "^6.2.0",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment