GithubHelp home page GithubHelp logo

claroline / demobundle Goto Github PK

View Code? Open in Web Editor NEW
0.0 5.0 0.0 4.03 MB

This bundle will periodically reinstall a claroline platform with the demo fixtures.

License: GNU General Public License v3.0

PHP 70.09% HTML 27.17% CSS 0.28% JavaScript 2.46%

demobundle's Introduction

Usage

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

demobundle's People

Contributors

maxailloud avatar ngodfraind avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.