Multiple front ends for a same site¶
You can configure two different "web sites" which serve a same Lino site.
Create the Lino site as usual using
In the project directory of the site, create a file named
settings_react.py with this content:
from .settings import * class Site(Site): default_ui = "lino_react.react" x = DATABASES, SECRET_KEY SITE = Site(globals()) # this will set new values for DATABASES and SECRET_KEY DATABASES, SECRET_KEY = x
manage_react.py file as a copy of
the copy to point to the
Create a file
wsgi_react.py as a copy of
wsgi.py. Modify also
this copy to point to the
Manually copy the supervisor and nginx or apache config files.
No need to run a second linod.
Perhaps you must install the alternative front end into the virtualenv:
$ . env/bin/activate $ pip install lino_react