- PHP > 7.1
Application read environment variables. All configuration properties described in .env.example
For dev environment you also can create .env
file in root folder
- Run all sql scripts in
database
folder - Optionally set
BASE_STORAGE_DIR
environment variable. Application will save there all images, logs, cache etc. - Create symlinc to images folder:
BASE_STORAGE_DIR/public/images
toapplication_root/public/images
Alternatively on *nix system with bash shell run prepare.sh
script from root folder with environment parameters:
DB_NAME=test DB_PASSWORD=test DB_USER=test sh prepare.sh
- Create
.env
file or set env variables php -S localhost:8000 -t public
starts PHP build-in server on port 8000.