Public | Automated Build

Last pushed: 2 months ago
Short Description
Сайт сушей
Full Description

sudo apt-get purge nodejs
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs

Fix Error: Missing binding

npm rebuild node-sass

Fix js inspection error

Change your JavaScript language version to ECMAScript6.
Languages & Frameworks -> JavaScript -> JavaScript language version

Install laravel

php composer.phar create-project --prefer-dist laravel/laravel www

Install required npm packages

npm install -g npm-deps

Install modules

php composer.phar require caffeinated/modules

Add to config/app.php

Caffeinated\Modules\ModulesServiceProvider::class,
'Module' => Caffeinated\Modules\Facades\Module::class,

Publish config

php artisan vendor:publish --tag=config

Add module auto loader to composer.json

"autoload": {
"psr-4": {
"App\": "app/",
"Sushi\": "Sushi/"
}
}

Merge module deps in main vendor folder

php composer.phar require wikimedia/composer-merge-plugin

add to composer.json

"extra": {
    "merge-plugin": {
        "include": [
            "Modules/*/composer.json"
        ]
    }
},

Change auth user model in config/auth.php

'model' => Domain\User\Model::class,

Change cache store o support tags for RBAC .env

CACHE_DRIVER=array

Create RBAC migrations

php artisan entrust:migration

Clear config cache

php artisan config:clear
php artisan route:clear
php artisan view:clear
php artisan vendor:publish

Change models classes in entrust config

'role' => Domain\Role\Model::class,
'permission' => Domain\Permission\Model::class,

Migrate

php artisan migrate

Seed

Generate autoload

php composer.phar dump-autoload

Create module

php artisan module:make admin-base

Add to config/adminbase.php

'url' => 'admin',

php artisan module:make admin-acl

su -c "php artisan module:migrate:refresh --seed" -s /bin/sh www-data

Docker Pull Command
Owner
sveshnikovav
Source Repository

Comments (0)