This is me!
Add something like this to your startup script:
eval "$(register-python-argcomplete plonex)"
You can initialize a new project with the init
command:
$ plonex init foo
INFO Creating foo/tmp
INFO Creating foo/etc
INFO Creating foo/var
INFO Creating foo/var/blobstorage
INFO Creating foo/var/cache
INFO Creating foo/var/filestorage
INFO Creating foo/var/log
INFO Creating foo/etc/plonex.yml
INFO Project initialized
plonex dependencies
After initializing your project, you can find an etc/supervisor
directory
with a couple of example files:
$ ls etc/supervisor
zeoclient.conf.example
zeoserver.conf.example
You can use them to decide which services are managed by supervisor.
For example to start the zeoserver
service when supervisor starts, you can just copy the example file:
cp etc/supervisor/zeoserver.conf.example etc/supervisor/zeoserver.conf
If you want you can modify the file to suit your needs.
All the files with the extension .conf
in the etc/supervisor
directory will be loaded by supervisor.
Once you are ready, you can start supervisor with:
plonex supervisor start
You can add an admin user with the adduser
command, e.g.:
$ plonex adduser admin $ADMIN_PASSWORD