php >= 5.4
git clone https://github.com/InnovaLangues/self.git
cd self
cp app/config/parameters.yml.dist app/config/parameters.yml
vi app/config/parameters.yml
composer update
php app/console doctrine:schema:drop --force
php app/console doctrine:schema:update --force (or php app/console doctrine:migrations:migrate)
php app/console self:fixtures:load
php app/console assets:install --symlink -env=prod
php app/console fos:js-routing:dump
php app/console bazinga:js-translation:dump
php app/console assetic:dump --env=prod
php app/console cache:clear --no-debug --env=prod
sudo mkdir -p web/upload/ app/data/export app/data/exportPdf app/data/session app/data/importCsv app/data/user
sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx web/upload/ app/cache app/logs app/data/
sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx web/upload/ app/cache app/logs app/data/
Need at least the 0.12.1 release... download from official site
sudo dpkg -i wkhtmltox-*_linux-wheezy-amd64.deb
Create an user
php app/console fos:user:create username
Give some rights to user
php app/console self:rightGroup:toggle username rightgroupname
See online users
php app/console self:sessions:check
# Basic update
php app/console lexik:maintenance:lock -n
git fetch
git checkout ...
php app/console doctrine:schema:update --force (or php app/console doctrine:migrations:migrate)
php app/console self:fixtures:load
php app/console assets:install --symlink -env=prod
php app/console fos:js-routing:dump --env=prod
php app/console bazinga:js-translation:dump
php app/console assetic:dump --env=prod
php app/console cache:clear --env=prod --no-debug
php app/console lexik:maintenance:unlock -n