Code Monkey home page Code Monkey logo

app-manager's Introduction

Správa aplikace pro Nette Framework

Nastavení v config.neon

extensions:
    appManager: NAtrreid\AppManager\DI\AppManagerExtension

Dostupné nastavení

appManager:
    deploy:
        projectUrl: 'homepageProjektu'
        secretToken: 'tajnyTokenProjektu' # pro github a gitlab
        type: 'github' # github, gitlab, bitbucket
    sessionExpiration: '14 days'
    backup:
        maxRows: 1000 # nebo null pro zadne omezeni insert
        excludeTables: # tabulky, ktere nebudou zalohovany
            - 'test' 
        dir:
            - %wwwDir%/zalohovanyAdresar

Payload webhooks musí být JSON

Použití

/** @var \NAttreid\AppManager\AppManager @inject */
public $app;

Údržba stránek

Přidejte do index.php. Soubor .maintenance.php se zobrazí pouze když bude údžba zapnutá. Vypnout se dá přidáním parametru do url maintenanceOff nebo pres konzoli php index.php maintenanceOff

$maintenance = isset($maintenance) ? $maintenance : __DIR__ . '/../temp/maintenance';
if (file_exists($maintenance)) {
    if (isset($_GET['maintenanceOff']) || (isset($argv) && $argv[1] == 'maintenanceOff')) {
        unlink($maintenance);
        echo "Maintenance off\n";
        exit;
    }
    require '.maintenance.php';
}

Invalidace cache

Pro invalidaci pomocí metody je třeba přidat

$app->onInvalideCache[]=function(){
    $this->cache->clean();
};

app-manager's People

Watchers

James Cloos avatar Roman Zikán avatar

app-manager's Issues

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.