Skip to content

Latest commit

 

History

History
48 lines (28 loc) · 1.38 KB

README.md

File metadata and controls

48 lines (28 loc) · 1.38 KB

TTFL Follow-Up

Web App to follow-up the TrashTalk Fantasy League

System Requirement

Installation

1 - Clone the git repository

git clone [email protected]:AirBair/TTFL-Follow-Up.git

2 - Configure environment variables

Copy the .env file to .env.local and complete it with required credentials & the correct working environment.

3 - Install project dependencies

  • In production environment:

composer install --no-dev --optimize-autoloader && composer dump-env prod

  • In development or testing environment:

composer install

4 - Generate static resources (css, javascript, ..)

npm install && npm run build

5 - Grant write access on var & uploads directories to the web user

HTTPDUSER=$(ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\  -f1)
setfacl -dR -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX var public/uploads
setfacl -R -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX var public/uploads

6 - Protect sensitive files

Since the .env.local (and .env.local.php if you are in production environment) contains sensitive information, consider protecting it in read/write mode. Only the web user and developers are supposed to be able to access it.