66* API Laravel Boilerplate 5.5
77* Apache 2
88* MySQL
9+ * Xdebug
910* Docker
1011
1112## Docker Environments
@@ -24,7 +25,7 @@ Clone this respository and run the following commands:
2425``` bash
2526cd docker-laravel-api-dev/
2627docker-compose -f docker-compose.yml up --build -d
27- # wait for it to build and follow the docker instructions !...
28+ # wait for it to build!...
2829```
2930### PWD
3031With Play with Docker and following the docker instructions, it is easy to deploy and test this environment!
@@ -33,36 +34,22 @@ With Play with Docker and following the docker instructions, it is easy to deplo
3334
3435## Docker Instructions
3536
36- ### Execute Laravel Pre-requisites
3737In the root directory:
3838``` bash
3939# container lists
4040docker ps
41- # next, execute an interactive bash shell on the php container.
42- docker container exec -t -i [dockerlaravelapidev_php_1 or container Id] bash
41+ # make sure that the docker dockerlaravelapidev_php_1 or php container is (healthy),
42+ normally the process begins in starting mode (2 or 3 minutes)
4343```
44- #### Run the following commands:
4544
46- ##### Compose and Swarm Mode
47- ``` bash
48- composer install && cp .env.example .env && php artisan key:generate && php artisan migrate
49- chmod 755 -R storage
50- # forward to the port 80, go to localhost and enjoy!...
51- ```
52- ##### Play With Docker (PWD)
53- ``` bash
54- composer install && php artisan migrate
55- # forward to the port 80, go to localhost and enjoy!...
56- ```
45+ ### Environments
46+
47+ * docker-compose-dev.yml: generate automatically severals folders and require-dev dependencies on your local. (Including Xdebug).
48+
49+ * docker-compose-pwd.yml: you can use it in play with docker and test its process.
50+
51+ * docker-compose-prod.yml: if you are going to use this yaml, make sure to generate the migrations before, however you can modify the entrypoint.
5752
58- ### How to fix Error: laravel.log could not be opened?
59- In the root directory or inside the container php:
60- <pre ><code >chmod -R 775 storage </code ></pre >
61- * 7 - Owner can write
62- * 7 - Group can write
63- * 5 - Others cannot write!
64- Reference:
65- https://stackoverflow.com/questions/23411520/how-to-fix-error-laravel-log-could-not-be-opened
6653
6754### API Boilerplate Reference
6855https://github.com/francescomalatesta/laravel-api-boilerplate-jwt/blob/master/readme.md
0 commit comments