- Local build
- Common questions
- Troubleshooting
Make sure you have an installed Docker on your system.
Clone open-genes-cms repository, follow the instructions.
In /app directory create a new file called .env. Copy /.env.sample contents into it.
Run ./open-genes-backend.sh with one of the following commands:
sh open-genes.sh build
sh open-genes.sh up --build
sh open-genes.sh up -d --build
sh open-genes.sh up
sh open-genes.sh down
sh open-genes.sh up --no-detach
docker run --rm -v $PWD/app:/app composer install
Add this entry to your /etc/hosts (Debian) or an equivalent:
127.0.0.1 open-genes.develop cms.open-genes.develop
DB will be available on http://localhost:3307
user root
password secret
docker ps
(copy hash of opengenes_php container)
docker exec -it (container_hash) bash
Note: all the DB migrations should be made at the CMS project
./open-genes.sh up --build xdebug
or ./open-genes.sh up --build xdebug <your ip address>
in case your ip address is not automatically detected by open-genes.sh
2. Setup PHP Storm: https://blog.denisbondar.com/post/phpstorm_docker_xdebug
open-genes.sh detects xdebug ip address as follows:
ip -4 -br addr show | grep "$CLIENT_HOST"
Port 9003 is default for xdebug v3, and it cannot be changed.
if your operating system differs from Debian/Ubuntu Linux family, please consider this solution.
In /open-genes.sh file replace UID
constant name to XUID
then run the script again.