Update INSTALL.md
This commit is contained in:
		
							
								
								
									
										27
									
								
								INSTALL.md
									
									
									
									
									
								
							
							
						
						
									
										27
									
								
								INSTALL.md
									
									
									
									
									
								
							| @@ -1,14 +1,19 @@ | |||||||
| # Preparing | # Preparing | ||||||
|  |  | ||||||
| - [ ] Install and configure Mailsystem (postfix) so it is possible to send mails | - [ ] Install and configure Mailsystem (postfix) so it is possible to send mails | ||||||
|  |  | ||||||
| - [ ] apt install python3 python3-pip python3-venv python3-virtualenv | - [ ] apt install python3 python3-pip python3-venv python3-virtualenv | ||||||
|  |  | ||||||
| - [ ] apt install uwsgi uwsgi-plugin-python3 | - [ ] apt install uwsgi uwsgi-plugin-python3 | ||||||
|  |  | ||||||
| - [ ] Install and configure mariadb-server | - [ ] Install and configure mariadb-server | ||||||
|  |  | ||||||
| - [ ] Install and configure nginx und selfencrypt | - [ ] Install and configure nginx und selfencrypt | ||||||
|  |  | ||||||
|  |  | ||||||
| # Installation | # Installation | ||||||
|  |  | ||||||
| ## Create databases for carom and carom-int | - [ ] Create databases for carom and carom-int | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
| -- carom | -- carom | ||||||
| @@ -21,9 +26,9 @@ GRANT ALL PRIVILEGES ON carom-int.* TO 'carom-int'@'localhost'; | |||||||
| FLUSH PRIVILEGES; | FLUSH PRIVILEGES; | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ### Passphrases should be replaced by usefull characters | Passphrases should be replaced by usefull characters | ||||||
|  |  | ||||||
| ## Create systemd unit file for uwsgi (/etc/systemd/system/uwsgi.service): | - [ ] Create systemd unit file for uwsgi (/etc/systemd/system/uwsgi.service): | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
| [Unit] | [Unit] | ||||||
| @@ -41,7 +46,7 @@ NotifyAccess=all | |||||||
| WantedBy=multi-user.target | WantedBy=multi-user.target | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ## Checkout carom | - [ ] Checkout carom | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
| cd /srv | cd /srv | ||||||
| @@ -53,13 +58,13 @@ git pull | |||||||
| cd .. | cd .. | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ## Install pipenv | - [ ] Install pipenv | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
| Pip3 install –upgrade pipenv | Pip3 install –upgrade pipenv | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ## Create caromserver/local_settings.py for both environments: | - [ ] Create caromserver/local_settings.py for both environments: | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
| cd caromserver | cd caromserver | ||||||
| @@ -77,7 +82,13 @@ pipenv run python manage.py collectstatic | |||||||
|  |  | ||||||
| Do it for /srv/carom and /srv/carom-int | Do it for /srv/carom and /srv/carom-int | ||||||
|  |  | ||||||
| ## Create config File for uwsgi/carom | Create Superuser Accounts using: | ||||||
|  |  | ||||||
|  | ``` | ||||||
|  | pipenv run python manage.py createsuperuser | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | - [ ] Create config File for uwsgi/carom | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
| # carom...ini file | # carom...ini file | ||||||
| @@ -102,7 +113,7 @@ to /etc/uwsgi/apps-enabled/ | |||||||
| systemctl restart uwsgi | systemctl restart uwsgi | ||||||
| Show at syslog for errors and fix it. | Show at syslog for errors and fix it. | ||||||
|  |  | ||||||
| ## Create Config File for nginx/carom | - [ ] Create Config File for nginx/carom | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
| upstream socket_carom { | upstream socket_carom { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user