tBKwtWS 6 lat temu
rodzic
commit
2763546550
1 zmienionych plików z 10 dodań i 5 usunięć
  1. 10 5
      README.md

+ 10 - 5
README.md

@@ -36,7 +36,7 @@ Fill in the passwords, don't change the database name, it's hardcoded in pyRot,
 1. `CREATE ROLE pyrot WITH LOGIN PASSWORD '';`
 1. `GRANT ALL ON DATABASE website TO pyrot;`
 
-## Settings file.
+## DB authentication
 
 For now, set the database authentication details in the following files:
 1. website/website/settings.py
@@ -48,6 +48,13 @@ For now, set the database authentication details in the following files:
 1. `python manage.py makemigrations`
 1. `python manage.py migrate`
 
+## Nginx configuration
+1. See if you to change `STATIC_ROOT` in `website/website/settings.py`.
+1. `ln -s /etc/nginx/sites-enables/`
+1. `sudo systemctl reload nginx`
+
+## uwsgi
+uwsgi command: `/opt/h0v1n8-env/bin/uwsgi --emperor /etc/uwsgi/vassals/ --daemonize /var/log/uwsgi-emperor.log`
 
 # Testing the project.
 
@@ -56,6 +63,7 @@ For now, set the database authentication details in the following files:
 1. `cd website`
 1. `python manage.py runserver`
 
+
 ## pyRot
 The pythonic version of RotBot, there have been 5 earlier versions including winRot and javaRot.
 
@@ -65,11 +73,8 @@ The pythonic version of RotBot, there have been 5 earlier versions including win
 
 # Edeting the look of the webgui
 
-## Build Fomatic-ui 2.7.8 
+## Build Fomatic-ui 2.7.8
 
 ### Requirements: NodeJS 10.15.3 & NPM 6.4.1
 
 On debian: `sudo apt install npm`
-
-
-