hiqdev / asset-packagist.dev
asset-packagist.dev
Installs: 133
Dependents: 0
Suggesters: 0
Security: 0
Stars: 18
Watchers: 6
Forks: 7
Open Issues: 5
Type:yii2-extension
Requires
- hiqdev/asset-packagist: dev-master
- hiqdev/yii2-asset-hiqdev: ~0.2
- hiqdev/yii2-monitoring: *@dev
- hiqdev/yii2-theme-original: ~0.1 || dev-master
- hiqdev/yii2-yandex-metrika: ~0.1
- mito/yii2-sentry: *
Requires (Dev)
- hiqdev/hidev-hiqdev: ~0.6
- hiqdev/hidev-php: ~0.6
- yiisoft/yii2-debug: ^2.0
This package is auto-updated.
Last update: 2024-10-29 04:53:17 UTC
README
Installation
Create the DB in MySQL:
CREATE DATABASE asset_packagist; CREATE USER 'asset-packagist'@'localhost' IDENTIFIED BY 'GOOD_PASSWORD'; GRANT ALL PRIVILEGES ON asset_packagist.* TO 'asset-packagist'@'localhost'; FLUSH PRIVILEGES;
Create the project with composer:
composer create-project --stability=dev "hiqdev/asset-packagist.dev:*" dir
Make configuration tuning:
Copy .env.example
to .env
and adjust it:
cp .env.example .env edit .env
Be sure to set COOKIEVALIDATIONKEY
and DB_PASSWORD
:
COOKIEVALIDATIONKEY=GOOD_RANDOM_STRING_HERE DB_PASSWORD=YOUR_DB__PASSWORD
Put your SSH private key into .docker/ssh/id_rsa
, make sure to set owner root and chmod 600.
mkdir .docker/ssh
cp ~/Desktop/id_rsa .docker/ssh/id_rsa
chown -R root:root .docker/ssh
chmod 600 .docker/ssh/id_rsa
Deploy the project
docker-compose up -d --scale queue=4
Try to fetch your first package from web-interface or using the following command:
docker-compose run --rm cli ./vendor/bin/hidev asset-package/update bower jquery
Working with queues
Some operations such as package update will push tasks to queue. Run queue to execute that tasks:
./vendor/bin/hidev queue/run
It is recommended to run all console commands from the same user you are running the web application
to prevent permissions problems in web/p
directory.
Known bugs:
Just skip yellow warnings Couldn't read ...
- they are unimportant.
License
This project is released under the terms of the BSD-3-Clause license. Read more here.
Copyright © 2016-2018, HiQDev (http://hiqdev.com/)