Skip to content

myclabs/Inventory

Folders and files

NameName
Last commit message
Last commit date
Sep 5, 2016
Nov 27, 2015
Jul 9, 2015
Jan 22, 2015
Jun 19, 2015
May 20, 2015
Jan 22, 2016
Sep 9, 2016
May 22, 2015
Aug 14, 2013
Feb 6, 2014
Mar 26, 2014
Sep 18, 2013
May 26, 2014
Nov 27, 2015
Nov 27, 2015
Apr 11, 2014
Apr 23, 2014

Repository files navigation

Inventory

To see the current version installed, visit the url: /version.php.

Installation

Checkout the project using git or the Github plugin for PhpStorm.

Install composer and run:

composer install

Set up config files

cp application/configs/application.ini.default application/configs/application.ini
cp public/.htaccess.default public/.htaccess
cp application/configs/env.php.default application/configs/env.php
nano application/configs/env.php

Set up file rights

chmod 777 data/documents
chmod -R 777 data/logs
chmod 777 data/proxies
chmod -R 777 public/cache
chmod 777 public/temp

Run with Vagrant

Install Virtual Box and Vagrant:

vagrant up

The website is accessible at http://localhost:8000/inventory/.

PhpMyAdmin is accessible at http://localhost:8000/phpmyadmin/.

SSH to the virtual machine:

vagrant ssh
cd /vagrant

Destroy the VM:

vagrant destroy

Commands

Commands are run with bin/inventory, or bin/tests for the unit tests environment.

  • account:create "My Company": creates a new account
  • acl:rebuild: rebuilds the ACL from the roles
  • cache:clear: clear the caches
  • db:create: creates the database (empty)
  • db:update: update the database schema
  • db:populate [data-set]: create and populates the database with a data set
  • export:rebuild: rebuilds the export files

Tests

cd inventory/
phpunit

Logs

  • error.log: application log
  • queries.log: query log
  • worker.log: while running in worker mode, logs are on the standard output, but redirected to this file by supervisor