Skip to content

Exception ked spustam aplikaciu cez console #140

@duskohu

Description

@duskohu

Spustam apikaciu cez console bin/console help a este nemam vygenerovanu ziadnu cache, tam mi vyhodi

WebLoader\Nette\CompilationException: You must create a writable directory '...\bin/webtemp' in ....\vendor\janmarek\webloader\WebLoader\Nette\Extension.php:94 @ CLI (PID: 10376): bin/console help

#!/usr/bin/env php
<?php

/** @var \Nette\DI\Container $container */
$container = require __DIR__ . '/../app/bootstrap.php';

/** @var \Symfony\Component\Console\Application $consoleApplication */
$console = $container->getByType(Symfony\Component\Console\Application::class);
exit($console->run());

webtemp mam nastavene defaultne

'tempDir' => '%wwwDir%/' . self::DEFAULT_TEMP_PATH,
'tempPath' => self::DEFAULT_TEMP_PATH,

Problem som zatil vyriesil dal som si do bootstrap.php

$configurator->addParameters([
    'appDir' => __DIR__,
    'wwwDir' => __DIR__ . '/../www',
]);

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