Website to handle esport tournament
Download vendors Considering you have composer.phar installed and in your PATH :
composer.phar install
If not set with composer.phar, configure symfony2 :
cp app/config/parameters.yml.dist app/config/parameters.yml
vim app/config/parameters.yml
Create database & load fixtures (php-mbstring needed)
php app/console doctrine:database:create
php app/console doctrine:schema:create
php app/console doctrine:fixtures:load
Install assets
php app/console assets:install #dev
php app/console assetic:dump #prod
Clear cache
php app/console cache:clear #dev
php app/console cache:clear --env=prod
Launch development server
php app/console server:run #localhost only
php app/console server:run 0.0.0.0:9001 #available for everyone
(you can also use the php builtin development web server : cd web && php -S localhost:9001
)
You can use the deploy-ftp script to deploy on a mutualised website. You must also have ncftp on your client (yum install ncftp/apt-get install ncftp)
- Configure your deployment
cd deploy/conf
#Configure ftp
cp ftp.cfg.dist ftp.cfg
vim ftp.cfg
#Configure .htaccess
cp .htaccess.dist .htaccess
vim .htaccess
#Configure parameters.yml
cp parameters.yml.dist parameters.yml
vim parameters.yml
- Deploy
Deploy takes approximately 5 minutes.
cd deploy
./deploy-ftp.sh
- Remove app/cache/prod content Use filezilla to clear cache, ie remove app/cache/prod folder content
Backup DB before deploy, update it locally and send it after deploy if you changed the schema.
- Contributing file
If you wish to contribute to the insalan.fr project, refer to this file.