Added shell scripts, updated readme
This commit is contained in:
34
README.md
34
README.md
@@ -37,7 +37,7 @@ This project uses the following ports:
|
|||||||
| MySQL database server | 3306 |
|
| MySQL database server | 3306 |
|
||||||
| PHPMyAdmin | 8080 |
|
| PHPMyAdmin | 8080 |
|
||||||
| Nginx web server | 80 |
|
| Nginx web server | 80 |
|
||||||
| Game server | 53595 |
|
|
||||||
___
|
___
|
||||||
|
|
||||||
## Clone the project
|
## Clone the project
|
||||||
@@ -59,30 +59,14 @@ ___
|
|||||||
|
|
||||||
## Run the application
|
## Run the application
|
||||||
|
|
||||||
1. Start the Docker application:
|
1. Perform first time setup and start the Docker application:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo make start
|
./first-time-setup.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
**Please wait this might take a several minutes...**
|
**Please wait this might take a several minutes...**
|
||||||
|
|
||||||
```sh
|
|
||||||
sudo make logs # Follow log output
|
|
||||||
```
|
|
||||||
|
|
||||||
2. Clone the git repository:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
sudo make clone
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Import the databases:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
sudo make import
|
|
||||||
```
|
|
||||||
|
|
||||||
2. Open your favorite browser:
|
2. Open your favorite browser:
|
||||||
|
|
||||||
* [http://localhost](http://localhost/)
|
* [http://localhost](http://localhost/)
|
||||||
@@ -91,13 +75,13 @@ ___
|
|||||||
3. Backup your databases:
|
3. Backup your databases:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo make backup
|
./backup-database.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Restore your databases:
|
4. Restore your databases:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo make restore
|
./restore-database.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Get help:
|
5. Get help:
|
||||||
@@ -109,24 +93,24 @@ ___
|
|||||||
6. Stop the application:
|
6. Stop the application:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo make stop
|
./stop.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
7. Start the application:
|
7. Start the application:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo make start
|
./start.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
8. Restart the application:
|
8. Restart the application:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo make restart
|
./restart.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
## Additional commands
|
## Additional commands for troubleshooting use
|
||||||
|
|
||||||
| Name | Description |
|
| Name | Description |
|
||||||
|---------------|-----------------------------------------------|
|
|---------------|-----------------------------------------------|
|
||||||
|
|||||||
3
backup-database.sh
Normal file
3
backup-database.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo make backup
|
||||||
7
first-time-setup.sh
Executable file
7
first-time-setup.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo make stop
|
||||||
|
sudo make start
|
||||||
|
sudo make clone
|
||||||
|
sleep 5
|
||||||
|
sudo make import
|
||||||
3
restart.sh
Executable file
3
restart.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo make restart
|
||||||
3
restore-database.sh
Normal file
3
restore-database.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo make restore
|
||||||
3
view-logs.sh
Executable file
3
view-logs.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo make logs
|
||||||
Reference in New Issue
Block a user