Euradionantes.eu Web Platform
Work in progress: check out dev branch
Built atop Symfony2 & Sonata Project.
Initiated here, 2 years ago, currently in a new WIP state,
If you're working with a previous instance, jump to the Upgrade section
$ git clone https://github.com/polypodes/EuradioNantes.eu.git
$ cd EuradioNantes.eu
$ composer install
$ php app/console doctrine:database:create
$ php app/console doctrine:schema:update --forceThen create a local vhost: An Apache 2.4 vhost configuration is given in /doc.
Create a admin/admin + user/user logins.
$ php app/console fos:user:create admin [email protected] admin --super-admin
$ php app/console fos:user:create user [email protected] user
$ php app/console fos:user:promote user SONATACheck out FOSUser documentation
Command lines to create a website on a euradionantes2015 local vhost, with fr locale.
$ php app/console sonata:page:create-site --enabled=true --name=EuradioNantes --locale=fr --host=euradionantes2015 --relativePath=/ --enabledFrom=now --enabledTo="+20 years" --default=trueCreating website with the following information :
name : EuradioNantes
site : http(s)://euradionantes2015
enabled : from Wed, 01 Jul 2015 10:05:09 +0200 => to Tue, 01 Jul 2025 10:05:09 +0200Confirm site creation ?yesSite created !You can now create the related pages and snapshots by running the followings commands:$ php app/console sonata:page:update-core-routes --site=1
$ php app/console sonata:page:create-snapshots --site=1Fetch ans sql dump from production env, name it euradionantes_prod.v1.sql and place it into ./doc/backups/prod
Create a new empty database with a new working name
Reference this new database name inside the app/config/parameters.yml file
Make sure your app can access this database with a valid SQL user lgin and password
Important : Make sure the host value in your sonata site configuration (table page__site) actually fits with you local vhost name.
From the root folder of your instance:
$ make mysqlUpgradeJust test once:
$ make trackIn a 10-seconds infinite loop: (CTRL+C to stop it)
$ make tracks# Euradionantes broadcast
* * * * * php /path/to/euradionantes/app/console euradionantes:track >> /path/to/euradionantes/app/logs/broadcast.cron.log
# Euradionantes purge old broadcast entries
0 1 * * * php /path/to/euradionantes/app/console euradionantes:broadcast:purge >> /path/to/euradionantes/app/logs/broadcast.cron.logMIT Licensed.
You can find a copy of this software here: polypodes/EuradioNantes.eu