Skip to content

create temporary file during deployment #1

@ViliamKopecky

Description

@ViliamKopecky

In context of Nette app, with index.php like:

<?php

if(file_exists(__DIR__ . '/../.deployment')) {
    require '.maintenance.php';
}

// Let bootstrap create Dependency Injection container.
$container = require __DIR__ . '/../app/bootstrap.php';

// Run application.
$container->application->run();

the deployment script could write a temporary file in root directory eg .deployment and after deployment is finished remove this file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions