- Create a database in MySQL, in utf8_general_ci
- Create a directory on your hard drive, we'll assume it's at $SYMFONY
- Go in it
cd $SYMFONY
- Fork the repo and clone it in $SYMFONY:
git clone https://github.com/yourname/netrunnerdb
- This creates a directory named netrunnerdb in $SYMFONY. Let's say DOCROOT=$SYMFONY/netrunnerdb.
- Go into it.
- Install Composer:
curl -s http://getcomposer.org/installer | php
- Install the vendor libs:
php composer.phar install
; at the end of the install, you'll be asked for your database information - Configure your local webserver with a DocumentRoot pointing to $DOCROOT (vhost probably)
- Create the tables:
php app/console doctrine:schema:update --force
- If the above command fails, edit app/config/parameters.yml and try again
- Import the data from the latest
netrunnerdb-*.sql.gz
into MySQL - Point your browser to
/web/app_dev.php
When you update your repository, run the following commands:
php composer.phar self-update
php composer.phar update
php app/console doctrine:schema:update --force
php app/console cache:clear --env=dev
To update the deck of the week on the front page:
php app/console highlight
- login as ROLE_ADMIN (edit your user) or edit
app/config/security.yml
- go to
/admin/card
,/admin/pack
,/admin/cycle
, etc.
- your php module must be configured with
mbstring.internal_encoding = UTF-8