Skip to content

The file or directory to be published does not exist: /usr/home/dima/advanced/vendor/bower/jquery/dist #6402

@d-bo

Description

@d-bo

Hello. Have some problems with separated advanced app skeleton install. What i've done:

composer asset plugin installed by

composer global require "fxp/composer-asset-plugin:1.0.0-beta4"

next yii2 framework

composer global require "yiisoft/yii2:2.0.*@dev"

the app-advanced skeleton in a separate folder /home/dima/advanced

composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced advanced

correct paths to autoload yii2 from /frontend/web/index.php generated by init

<?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
$vendor = '/home/dima/.composer/vendor';
require($vendor . '/autoload.php');
require($vendor . '/yiisoft/yii2/Yii.php');
require(__DIR__ . '/../../common/config/bootstrap.php');
require(__DIR__ . '/../config/bootstrap.php');

$config = yii\helpers\ArrayHelper::merge(
    require(__DIR__ . '/../../common/config/main.php'),
    require(__DIR__ . '/../../common/config/main-local.php'),
    require(__DIR__ . '/../config/main.php'),
    require(__DIR__ . '/../config/main-local.php')
);

$application = new yii\web\Application($config);
$application->run();

I tried to play with @Vendor and other paths
But can't resolve the error

The file or directory to be published does not exist: /usr/home/dima/advanced/vendor/bower/jquery/dist

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions