Skip to content

vasymus/agileengine

Repository files navigation

Laravel project and docker-compose-laravel configuration

In short:

First time run commands for deploying: copy and paste to the terminal:

``` sudo docker-compose up -d --build site && \ docker-compose run --rm composer install && \ docker-compose run --rm artisan run-all && \ docker-compose run --rm artisan l5-swagger:generate && \ docker-compose run --rm artisan queue:work ```

All following deploying commands: copy and paste in to the terminal:

sudo docker-compose up -d --build site && \
docker-compose run --rm artisan run-all && \
docker-compose run --rm artisan l5-swagger:generate && \
docker-compose run --rm artisan queue:work

Then go to http://localhost:6789/api/documentation

More detailed description

Installation requirements here

Command

php artisan run-all

could be run separately:

docker-compose run --rm artisan key:generate
docker-compose run --rm artisan migrate
docker-compose run --rm artisan db:seed
docker-compose run --rm artisan l5-swagger:generate

Test user will be created with id 1 and test user account will be create with id 1. There will be also 1000 test transaction seeds.

To view swagger follow http://$your-local-domain/api/documentation

Please, note

There is also an alternate approach in executing of this task. In order to view it run `git fetch && git checkout threading-variation` and (just to be sure everything work properly) run ``` docker-compose down ``` and then again run deploying commands mentioned above.