This project helps to run a local environment to work with PHP, Apache and MySQL.
Clone this repo and folow the commands bellow start to work on your local environment:
# clone the project
git clone [email protected]:raphaellopes/kainat.git
# go to app folder
cd kainat/app/
# copy the `.env.example` to `.env` and change the env vars
cp .env.example .env
# build and run the basic containers `make -C <container> <task>`
make -C php-fmp build run
make -C apache build run
make -C mysql run
Add this project on your .bashrc
file (optional)
# change path-to-the-project with the path where you cloned this repo
export PATH="$PATH:{path-to-the-project}/bin"
Close you terminal and open it again. Now you have an alias called
kainat
. You can build your environment running the commands bellow:
# build for wp development (mysql, apache and php images)
kainat wp build
# stop for wp development (mysql, apache and php images)
kainat wp stop
# run for wp development the images with a `.env` file passed as a second arg (see `.env.example` file)
kainat wp {path-to-envfile} run
# to run the containers
kainat {app-name} {docker command}
make -C <container> help