Running wiki-to-print on the server: Difference between revisions

From creative crowd wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 38: Line 38:
  $ git clone ssh://gitea@vvvvvvaria.org:12345/varia/wiki-to-print.git
  $ git clone ssh://gitea@vvvvvvaria.org:12345/varia/wiki-to-print.git


  $ cd wiki-to-print
  $ cd wiki-to-print/wiki-to-print/web-interface/


  $ make run
$ python3 -m venv venv
 
$ source ./venv/bin/activate
 
$ pip3 install -r requirements.txt
 
  $ make local


[[Category:Sysadmin]]
[[Category:Sysadmin]]

Revision as of 12:03, 22 June 2023

├── Makefile
├── __pycache__
├── api.py
├── plugins
├── readme.md
├── requirements.txt
├── static
├── templates
├── update.py
├── venv
└── web-interface.py
  • web-interface.py: the flask application
  • api.py: script with all the functions that are used by the flask application

To run wiki-to-print in the background

$ sudo service wiki2print status
$ sudo service wiki2print start
$ sudo service wiki2print stop
$ sudo service wiki2print restart

For debugging (on the server)

You can find the files of wiki-to-print here:

$ cd /var/www/wiki2print/web-interface/

You can run the flask application directly (instead of running it as a systemd service):

$ make server

If you add prints statements in the python files you can see the result in the terminal.

For debugging (locally)

$ git clone ssh://gitea@vvvvvvaria.org:12345/varia/wiki-to-print.git
$ cd wiki-to-print/wiki-to-print/web-interface/
$ python3 -m venv venv
$ source ./venv/bin/activate
$ pip3 install -r requirements.txt
$ make local