claroline / demo-bundle
claroline.net demo
Installs: 46
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Type:claroline-plugin
Requires
- php: >=5.4.1
- claroline/core-bundle: ~4.0
This package is auto-updated.
Last update: 2024-11-13 21:58:08 UTC
README
This bundle allows you to reinstall the platform periodically while displaying a counter allowing you to inform every users of the time remaining before it happens.
Reinstalling the platform
In order to initialize the "time remaining" counter, you need to restart the platform once. Go into the DemoBundle/Resources/scripts directory and run:
sudo php reinstall.php
Setting the cron period
Setup a cron that fires the reinstall script periodically doc.
sudo crontab -e
Editing the bundle configuration file
Edit the Resources/config/parameters.yml file to reflect the cron period.
claroline.demo_bundle.period: 7200 #seconds
Updating the web folder
If you want the platform to redirect to a "reinstall" page when the script is working, run:
php app/console claroline:demo:replace_web
Displaying the counter
If you want to display the time remaining counter, edit the Resources/config/parameters.yml
claroline.demo_bundle.display_counter: true