Skip to content

Commit 94af89a

Browse files
Update makefile and README
1 parent 91bcd16 commit 94af89a

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

Makefile

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
include .env
22

3+
# make help
34
help:
45
@echo ""
56
@echo "usage: make COMMAND"
67
@echo ""
78
@echo "Commands:"
8-
@echo " apidoc Generate documentation of API"
9-
@echo " code-sniff Check the API with PHP Code Sniffer (PSR2)"
10-
@echo " clean Clean directories for reset"
11-
@echo " composer-up Update PHP dependencies with composer"
12-
@echo " docker-start Create and start containers"
13-
@echo " docker-stop Stop and clear all services"
14-
@echo " gen-certs Generate SSL certificates"
15-
@echo " logs Follow log output"
16-
@echo " mysql-dump Create backup of all databases"
17-
@echo " mysql-restore Restore backup of all databases"
18-
@echo " phpmd Analyse the API with PHP Mess Detector"
19-
@echo " test Test application"
9+
@echo " init Init skeleton settings"
10+
@echo " help List of all commands in make file"
11+
@echo " clear-all-logs Clear all logs in folder /logs"
12+
@echo " clear-logs-in folder=[FOLDER] Clear logs in folder"
13+
@echo " watch-log logFilePath=[PATH TO LOG FILE] Watch log file"
2014

2115
# make init
2216
init:

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ To install, you need to install docker locally.
1919
* [MySQL](http://www.mysql.com/)
2020
* [PHP-FPM](http://php-fpm.org/)
2121
* [Redis](http://redis.io/)
22+
* [Redis commander](https://joeferner.github.io/redis-commander/)
2223

2324
### Requirements
2425

@@ -41,7 +42,22 @@ Fill configuration in .env file
4142
docker-compose build && docker-compose up
4243
```
4344

44-
After open in browser [http://127.0.0.1/](http://127.0.0.1/)
45+
After open in browser [localhost](http://127.0.0.1/)
46+
47+
### Makefile
48+
This file helps to quickly interact with the work of docker and additional features.
49+
50+
```
51+
usage: make COMMAND
52+
53+
Commands:
54+
init Init skeleton settings
55+
help List of all commands in make file
56+
clear-all-logs Clear all logs in folder /logs
57+
clear-logs-in folder=[FOLDER] Clear logs in folder
58+
watch-log logFilePath=[PATH TO LOG FILE] Watch log file
59+
```
60+
4561

4662
### Support
4763

0 commit comments

Comments
 (0)