Skip to content

polypodes/EuradioNantes.eu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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,

Installation - Initialization

If you're working with a previous instance, jump to the Upgrade section

1/3 - Install via GitHub

$ 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 --force

Then create a local vhost: An Apache 2.4 vhost configuration is given in /doc.

2/3 - Create users

Create a admin/admin + user/user logins.

$ php app/console fos:user:create admin admin@domain.com admin --super-admin
$ php app/console fos:user:create user user@domain.com user
$ php app/console fos:user:promote user SONATA

Check out FOSUser documentation

3/3 - Create website

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=true
Creating 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 +0200
Confirm site creation ?yes
Site 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=1

Upgrade an existing instance

1/2 - Prepare the db

Fetch 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.

2/2 Run the upgrade script:

From the root folder of your instance:

$ make mysqlUpgrade

Try the "on air" track process bot

Just test once:

$ make track

In a 10-seconds infinite loop: (CTRL+C to stop it)

$ make tracks

Run cron tasks

# 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.log

License

MIT Licensed.

You can find a copy of this software here: polypodes/EuradioNantes.eu

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •