Varia library working group XPPL. https://gitea.xpub.nl/XPUB/XPPL
Go to file
Luke Murphy 4ee38230b5
Add a dummy setuptools file.
Will probably just use this for versioning which can match up in the
CHANGELOG.md to help people see which version to install. No releases
are tagged so far though.
2018-12-14 23:23:18 +00:00
ansible Handle RQLite idempotency. 2018-11-30 21:59:16 +00:00
scripts Arrange custom scripts for running applications. 2018-11-18 12:27:26 +01:00
tests Get dummy test suite in place. 2018-11-18 11:58:22 +01:00
xppl Updated .messages to have more top margin. Re-arranged CSS to bring * & body to top of page. 2018-11-30 18:11:27 +01:00
.gitignore Ignore egg files. 2018-12-14 23:23:07 +00:00
Makefile Remove docker, just us plain RQLite. 2018-11-18 13:25:47 +01:00
Pipfile Drop python-dotenv and load straight form Pipenv + xppl.config. 2018-11-18 21:00:11 +01:00
Pipfile.lock Drop python-dotenv and load straight form Pipenv + xppl.config. 2018-11-18 21:00:11 +01:00
README.md Make the title better. Add note. 2018-11-30 21:10:04 +00:00
setup.py Add a dummy setuptools file. 2018-12-14 23:23:18 +00:00
tox.ini Get dummy test suite in place. 2018-11-18 11:58:22 +01:00
wsgi.py Setup application factory and dev/prod files. 2018-11-18 11:13:56 +01:00

Varia's XPPL

The XPUB library living at Varia.

https://books.vvvvvvaria.org/

Change It

Please note, the following instructions have only been tested on the Debian Stretch OS.

You'll need to run an RQLite database first:

$ apt update && apt install -y make
$ make install-rqlite
$ make rqlited

Then get Pipenv and run the development server with:

$ pipenv install --dev --three
$ pipenv run devserver

If you need to check the database contents, run:

$ make rqlite

And then run .help for which commands are available.

Test It

$ pipenv run tox

Refer to the tox.ini for configuration options.

Deploy It

See ansible/README.md for this.

Maintain It

The XPPL is made up of a few parts:

  • The Flask application and it's dependencies.
  • The RQLite database.
  • The Syncthing integration for uploads.
  • The Nginx reverse proxy.
  • The Let's Encrypt web certificates.

If you know Ansible (it's just YAML), you can just read the entire configuration.

On the varia.zone machine, you can check the running services with:

$ sudo supervisorctl status all    # check all services
$ sudo supervisorctl stop xppl:*   # stop all XPPL services
$ sudo supervisorctl start xppl:*  # start all XPPL services

You can also view the error logs with:

$ sudo supervisorctl tail xppl:xppl-flask stderr
$ sudo supervisorctl tail xppl:xppl-rqlite stderr

The /var/xppl/xppl/uploads folder is managed by the Varia Syncthing UI.

The RQLite database is located at /var/xppl/rqlite/node.1. No cluster is configured.

No backups are configured right now.