Skip to content

Teanan/insalan.fr

 
 

Repository files navigation

insalan.fr

Code Climate Test Coverage

Website to handle esport tournament

Installation

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)

Deploy on shared web hosting services

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)

  1. 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
  1. Deploy

Deploy takes approximately 5 minutes.

cd deploy
./deploy-ftp.sh
  1. 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.

  1. Contributing file

If you wish to contribute to the insalan.fr project, refer to this file.

Packages

No packages published

Languages

  • PHP 61.9%
  • HTML 30.2%
  • CSS 6.3%
  • JavaScript 1.3%
  • Shell 0.3%