- The main problem is that textFileDict (a dictionary that connects the human readable titles of texts to the Python file for that text either in data/Greek or data/Latin) gets deleted
- textFileDict is needed for the selection of text sections.
Good housekeeping
- To connect to the Bridge server, open terminal and enter:
ssh bmulliga@64.227.97.179
- The server is just like any other computer. You need to keep it up to date so that people can't hack into it and use it to mine bitcoin. Whenever you log in, it's a good practice to run two commands:
sudo apt update
to update the computer andsudo apt upgrade
. - Some updates need a reboot before they take effect. If you see
*** System restart required ***
, you can typesudo reboot
and the computer will restart. - Wait a few seconds and you can reconnect to the server:
ssh bmulliga@64.227.97.179
- The application runs using the gunicorn application server and nginx webserver. If you need to restart the application, simply type
sudo service gunicorn restart
The configuration file is located here:/etc/systemd/system/gunicorn.service
. - To enter the application's virtual enviornment, you can type:
source /srv/bridge_env/bin/activate
After importing a text:
- Connect to the Bridge server:
ssh bmulliga@64.227.97.179
- If you imported a Latin text, open the texts.py file with
sudo nano /srv/FastBridge/FastBridgeApp/data/Latin/texts.py
- For Greek texts.py use
sudo nano /srv/FastBridge/FastBridgeApp/data/Greek/texts.py
- You should see two Python dictionaries in the file
texts
andtextFileDict
. If you see both, then all is well and stop here. - If textFileDict is missing, go to GitHub to get a version of the file with the needed data: for Latin, for Greek and copy the section for textFileDict. Do not copy the texts dictionary because it will not include the new text that you just imported.
- Go back to the texts.py file from step 2 or 3. Paste textFileDict below texts.
- Press crtl-O to save your changes and then crtl-X to exit the editor
- Restart the application with
sudo service gunicorn restart