Hi all
To briefly state the goal behind this project, it's simply to preserve dev ghostline's Bioserver1 & 2 projects, as neither of these are available on github and both require a bit of work to get up and running.
DO IT BEFORE RUNNING GAME SERVER
- run
make init - set your server IP in .env (SERVER_IP=)
- set your router IP or secondary dns (ROUTER_IP=)
- build containers
make build
For local server set FORCE_DEV_LOGIN=true in .env
- simple run
make run-daemonormake run
DO NOT FORGET TO ENABLE systemd-resolved
Simply run make enable-systemd-resovled
By default, the web application is built in production mode and changes in the code will not be applied until the application is rebuilt.
To make changes to the code without rebuilding, follow these steps:
- Set APP_PRODUCTION_BUILD variable to false in .env (APP_PRODUCTION_BUILD=false)
- Override biofpm volume by
cp docker/docker-compose.override.dev.yaml docker-compose.override.yaml - Install composer dependecies
make composer-install
IMPORTANT: Before running tests, make sure to start the biomysql container, otherwise you may encounter database connection errors on first run.
You can start it with: docker compose -f docker-compose.infra.yaml up -d biomysql
For running tests, there are two commands available:
make test- runs PHPUnit testsmake stan- runs PHPStan static analysis