- Do code changes
- Commit and push code changes to GitHub
- trigger code changes automatically via CircleCI and start testing (like UT and FT)
- Start deployment on AWS after testing success
- Docker for Containerization
- GitHub for Source Vesion Control
- CircleCI for CI/CD tool
- AWS services (Elastic Beanstalk)
- install
docker
- install
docker-compose
-
start
docker-compose
$ docker-compose up -d
-
create
.env
file$ cp laravel/.env.example laravel/.env
-
install composer
$ docker-compose exec php-fpm composer install
-
db migrate and seed
$ docker-compose exec php-fpm php artisan migrate --seed
-
passport install
$ docker-compose exec php-fpm php artisan passport:install
-
link to storage
$ docker-compose exec php-fpm php artisan storage:link
-
give root permission to storage
(Only for linux user)
$ docker-compose exec php-fpm sh $ cd storage && chown -R www-data:www-data * $ exit
-
watch vue changes
$ docker-compose exec php-fpm yarn install $ docker-compose exec php-fpm yarn watch
-
access
localhost:8000