Skip to content

SIO2-group/SportLudique

Repository files navigation

INSTALLATION for production server

Required environment

Optional environment

  • apache ^2.4.47

Windows

  1. Install dependencies
composer install
  1. Compile style file
sass $SERVER_PATH/public/scss/style.scss $SERVER_PATH/public/css/style.css
  1. 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
APP_ENV=prod
APP_SECRET=$secret
DATABASE_URL="mysql://$user:$password@$ip/$dbname?serverVersion=mariadb-$serverVersion"

Linux

  1. Replace SERVER_PATH by the right path of the web server in the makefile
SERVER_PATH := /srv/http
  1. Use makefile
make prod