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 getlino startsite.

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

Create a manage_react.py file as a copy of manage.py. Modify the copy to point to the settings_react.py file.

Create a file wsgi_react.py as a copy of wsgi.py. Modify also this copy to point to the settings_react.py file.

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