- Node.js
- MySQL
- Gulp installé globalement
npm install -g gulp
- Composer installé globalement
- Créer une base de données
e-lycee
- Importer
elycee.sql
:mysql -u root -p e-lycee < elycee.sql
- Installer Browsersync globalement
npm install -g browser-sync
- Installer les modules Node
npm install
- Lancer Componser
composer install
- Mettre à jour
parameters.yml
- Lancer la tâche Gulp (front :
gulp home
ougulp dashboard
| back :gulp
) - Lancer le serveur :
php app/console server:run
git clone
ougit checkout __tag___
- Vérification de l'environment
php app/check.php
- Lancer Componser
composer install --no-dev --optimize-autoloader
- Vider le cache
php app/console cache:clear --env=prod --no-debug
- Vider les assets
php app/console assetic:dump --env=prod --no-debug
- Préparer les vhosts
- Relancer Apache
sudo apachectl -k graceful
ou Nginxsudo service nginx restart
server {
server_name e-lycee.io;
root /__path_to_project__/web;
location / {
try_files $uri @rewriteapp;
}
location @rewriteapp {
rewrite ^(.*)$ /app.php/$1 last;
}
location ~ ^/(app|app_dev|config)\.php(/|$) {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS off;
}
error_log /var/log/nginx/e-lycee_error.log;
access_log /var/log/nginx/e-lycee_access.log;
}
<VirtualHost *:80>
DocumentRoot "__path_to_project__/web"
ServerName e-lycee.io
DocumentRoot "__path_to_project__/web"
<Directory "__path_to_project__/web">
AllowOverride All
Require all granted
</Directory>
# uncomment the following lines if you install assets as symlinks
# or run into problems when compiling LESS/Sass/CoffeScript assets
# <Directory /var/www/project>
# Options FollowSymlinks
# </Directory>
ErrorLog /var/log/apache2/e-lycee_error.log
CustomLog /var/log/apache2/e-lycee_access.log combined
</VirtualHost>
Amélie Meunier / @yuplaboom Gabriel Cousin / @gabrielcousin