Public Repository

Last pushed: 3 months ago
Short Description
php5 + pdo + memcache
Full Description

README

Для миграций используется библиотека PhinX

ВНИМАНИЕ! После коммита 417c7c2 необходима версия mysql не ниже 5.6

Для отката последней миграции: php vendor/bin/phinx rollback -e development

Настройки:

  • БД: /app/config/database.php.conf

  • API: /api/config/params.php.conf

Так же в этом файле необходимо прописать пути к файлам.

  • PhinX: /phinx.yml.conf

После установки:

  • Установить библиотеки: composer install

  • Инициализировать PhinX: php vendor/bin/phinx init .

  • Выполнить миграции: php vendor/bin/phinx migrate -e development

  • Выполнить команды для ACL:

#!bash

php cake/console/cake.php acl create aco controllers Delegations
php cake/console/cake.php acl create aco controllers/Delegations index
php cake/console/cake.php acl create aco controllers/Delegations view
php cake/console/cake.php acl create aco controllers/Delegations admin_index
php cake/console/cake.php acl create aco controllers/Delegations admin_view
php cake/console/cake.php acl create aco controllers/Delegations admin_edit
php cake/console/cake.php acl create aco controllers/Delegations admin_add
php cake/console/cake.php acl grant AdminGroup.1 Delegations all

php cake/console/cake.php acl create aco controllers Cooperations
php cake/console/cake.php acl create aco controllers/Cooperations index
php cake/console/cake.php acl create aco controllers/Cooperations view
php cake/console/cake.php acl create aco controllers/Cooperations admin_index
php cake/console/cake.php acl create aco controllers/Cooperations admin_view
php cake/console/cake.php acl create aco controllers/Cooperations admin_edit
php cake/console/cake.php acl create aco controllers/Cooperations admin_add
php cake/console/cake.php acl grant AdminGroup.1 Cooperations all

php cake/console/cake.php acl create aco controllers/Menus admin_get_menu_item
php cake/console/cake.php acl create aco controllers/Menus admin_edit_menu_item

php cake/console/cake.php acl create aco controllers/Generals admin_cacheClear
php cake/console/cake.php acl create aco controllers/Implications admin_preview

php cake/console/cake.php acl create aco controllers/ProjectHistories admin_get_item
php cake/console/cake.php acl create aco controllers/ProjectHistories admin_edit_item

php cake/console/cake.php acl create aco controllers/ProjectExaminations admin_get_item
php cake/console/cake.php acl create aco controllers/ProjectExaminations admin_edit_item
  • Для работы поиска по проектам необходимо подключиться к контейнеру sphinx-а и выполнить команду:
    /usr/local/bin/indexer --rotate --all -c /etc/sphinxsearch/sphinxy.conf
Docker Pull Command
Owner
optimum

Comments (0)