-
php
^7.3 -
composer
^2.3 The php library manager.
If you don't have composer, download it from https://getcomposer.org/download/ -
sass
^1.49 A style preprocessor.
If you don't have sass, download it from https://sass-lang.com/install -
mariadb
^10.7
apache
^2.4.47
- Install dependencies
composer install
- Compile style file
sass $SERVER_PATH/public/scss/style.scss $SERVER_PATH/public/css/style.css
- Adding dotenv config
- Create the schema in your database if needed
- Create a
.env
based on the template below- Replace
$secret
by the APP_SECRET generated - Replace
$user
by the root user - Replace
$password
by the user password - Replace
$ip
by the ip web server - Replace
$dbname
by the SportLudique database name - Replace
$serverVersion
by the mariadb server version
- Replace
APP_ENV=prod
APP_SECRET=$secret
DATABASE_URL="mysql://$user:$password@$ip/$dbname?serverVersion=mariadb-$serverVersion"
- Replace
SERVER_PATH
by the right path of the web server in themakefile
SERVER_PATH := /srv/http
- Use makefile
make prod