parent
ee1d0c1b6a
commit
8817c3fef9
@ -0,0 +1,134 @@
|
|||||||
|
**This is a short tutorial on installing TS-website 2.0**
|
||||||
|
|
||||||
|
### Requirements
|
||||||
|
<details><summary>Show / hide</summary>
|
||||||
|
|
||||||
|
#### General:
|
||||||
|
- A web server, shared hosting or dedicated server running Apache or nginx
|
||||||
|
- Access to your web server (via shell or FTP)
|
||||||
|
- A FTP Client (not needed if you are going with the "dummy" method)
|
||||||
|
|
||||||
|
#### Minimal
|
||||||
|
- PHP 5.6 version or greater
|
||||||
|
- Enabled extensions: `mbstring`, `json`, `pdo_mysql`, `curl`
|
||||||
|
|
||||||
|
#### Recommended configuration
|
||||||
|
- Ubuntu 16.04+, PHP 7.0+, nginx
|
||||||
|
</details>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### How to install TS-website 2 - in short
|
||||||
|
<details><summary>Show / hide</summary>
|
||||||
|
|
||||||
|
1. Download the latest version from the [releases page](https://github.com/Wruczek/ts-website/releases)
|
||||||
|
2. Unzip it
|
||||||
|
3. Transfer it to the web directory
|
||||||
|
4. Open your browser and navigate to TS-website, proceed with installation
|
||||||
|
</details>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Version for dummies - step by step with commands
|
||||||
|
<details><summary>Show / hide</summary>
|
||||||
|
|
||||||
|
This is a simple tutorial with commands for dummies.
|
||||||
|
|
||||||
|
What will you need:
|
||||||
|
- Clean VPS server running Ubuntu 16.04 or later
|
||||||
|
- SSH access to the server ("putty")
|
||||||
|
|
||||||
|
#### Preparing system
|
||||||
|
Update apt and get some necessary packages
|
||||||
|
```
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install unzip
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Installing web server, PHP and database
|
||||||
|
Please follow DigitalOcean's great tutorial for this.
|
||||||
|
- [Tutorial for Ubuntu 16.04](https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-in-ubuntu-16-04)
|
||||||
|
- [Tutorial for Ubuntu 18.04](https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-ubuntu-18-04)
|
||||||
|
|
||||||
|
**After you get back:**
|
||||||
|
Install some additional PHP packages:
|
||||||
|
```
|
||||||
|
sudo apt-get install php-mbstring php-curl
|
||||||
|
```
|
||||||
|
Create a database:
|
||||||
|
```
|
||||||
|
sudo mysql
|
||||||
|
CREATE DATABASE ts-website;
|
||||||
|
exit
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Installing TS-website
|
||||||
|
|
||||||
|
1. Go to the [releases page](https://github.com/Wruczek/ts-website/releases) and copy the link to the latest release zip ([like this](https://i.imgur.com/vEnVn1s.png))
|
||||||
|
2. Choose how would you like to install TS-website:
|
||||||
|
|
||||||
|
#### In a root folder (for example https://wruczek.tech)
|
||||||
|
**This will remove everything from the `html` folder!**
|
||||||
|
```
|
||||||
|
cd /var/www
|
||||||
|
sudo rm -r html
|
||||||
|
sudo wget paste_the_release_zip_link_here
|
||||||
|
sudo unzip ts-website-release*.zip
|
||||||
|
sudo rm ts-website-release*.zip
|
||||||
|
mv ts-website html
|
||||||
|
sudo chown www-data:www-data -R html
|
||||||
|
```
|
||||||
|
|
||||||
|
#### In a sub-directory (for example https://wruczek.tech/ts-website)
|
||||||
|
```
|
||||||
|
cd /var/www/html
|
||||||
|
sudo wget paste_the_release_zip_link_here
|
||||||
|
sudo unzip ts-website-release*.zip
|
||||||
|
sudo rm ts-website-release*.zip
|
||||||
|
sudo chown www-data:www-data -R ts-website
|
||||||
|
```
|
||||||
|
|
||||||
|
#### That's it!
|
||||||
|
Visit your website in web browser again to start the installation process.<br>
|
||||||
|
If you have installed TS-website in a sub-directory, remember to visit `http://your-server/ts-website`
|
||||||
|
|
||||||
|
Have fun!
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Assigner config format
|
||||||
|
<details><summary>Show / hide</summary>
|
||||||
|
Until the admin panel is released, use this as a template example for the assigner:
|
||||||
|
|
||||||
|
```json
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "Country",
|
||||||
|
"icon": "fas fa-globe",
|
||||||
|
"max": 1,
|
||||||
|
"groups": [
|
||||||
|
6,
|
||||||
|
59,
|
||||||
|
12,
|
||||||
|
11,
|
||||||
|
388
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "4 fun",
|
||||||
|
"icon": "fas fa-gamepad",
|
||||||
|
"max": 3,
|
||||||
|
"groups": [
|
||||||
|
14,
|
||||||
|
15,
|
||||||
|
620,
|
||||||
|
61,
|
||||||
|
625,
|
||||||
|
18
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
```
|
||||||
|
</details>
|
Loading…
Reference in new issue