git clone git@github.com:ESNFranceG33kTeam/sf_logoinserter.git
or
git clone https://github.com/ESNFranceG33kTeam/sf_logoinserter.git
Installez composer :
curl -sS https://getcomposer.org/installer | php
install all vendors
php composer.phar install
create directories
mkdir -p web/uploads/sections web/uploads/downloadsessions web/uploads/public
on Mac
HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs web/uploads/sections web/uploads/downloadsessions web/uploads/public
sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs web/uploads/sections web/uploads/downloadsessions web/uploads/public
on Linux
HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs web/uploads/sections web/uploads/downloadsessions web/uploads/public
sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX app/cache app/logs web/uploads/sections web/uploads/downloadsessions web/uploads/public
Deploy assets
php app/console assets:install
Update your database
php app/console doctrine:migrations:migrate
Import sections from file
php app/console esn:section:import