Skip to content

C. Instances management (console mode)

Laurent GAY edited this page Aug 11, 2015 · 2 revisions

Instance creation

In order to create a new instance, you need to use lucterios_admin.py.
This tool should be in your path after having the core and first dependencies installed.

minimal instance creation:

lucterios_admin.py add -n myInstance -i /path/to/my/new/instance

this will create an instance named "myInstance" on directory "/path/to/my/new/instance" using "standard" application configuration base and sqlite as datastore.

available options:

Usage:
    lucterios_admin.py <check|installed|listing|refresh_all|update>
    lucterios_admin.py <add|archive|clear|delete|modif|read|refresh|restore> [option]

Options:   
  --version:                          show program's version number and exit
  -h, --help:                         show this help message and exit
  -n NAME, --name=NAME:               Instance name
  -p APPLI, --appli=APPLI:            Instance application
  -d DATABASE, --database=DATABASE:   Database configuration 'sqlite', 'MySQL:...' or 'PostGreSQL:...'
  -m MODULE, --module=MODULE:         Modules to add (comma separator) 
  -e EXTRA, --extra=EXTRA:            extra parameters (<name>=value,...)
  -f FILENAME, --file=FILENAME:       file name for restor or archive
  -i INSTANCE_PATH, --instance_path=INSTANCE_PATH: 
                                      Directory of instance storage

update with Lucterios admin tools

export extra_url="http://pypi.lucterios.org/simple"
lucterios_admin.py update