Web App to follow-up the TrashTalk Fantasy League
git clone [email protected]:AirBair/TTFL-Follow-Up.git
Copy the .env
file to .env.local
and complete it with required credentials & the correct working environment.
- In production environment:
composer install --no-dev --optimize-autoloader && composer dump-env prod
- In development or testing environment:
composer install
npm install && npm run build
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
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.