Commit 4827f3c5 authored by Gabriel Monnerat's avatar Gabriel Monnerat

Add configuration to run cloudooo with the configuration file and update...

Add configuration to run cloudooo with the configuration file and update documentation to show how it works.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@37657 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0ec4384a
all: install
PYTHON=python2.6
install:
@$(PYTHON) setup.py install
...@@ -40,16 +40,22 @@ Create Configuration File ...@@ -40,16 +40,22 @@ Create Configuration File
The configuration file is used to start the application using paster. The configuration file is used to start the application using paster.
$ cp ./cloudooo/samples/cloudooo.conf . # Copy to current folder $ cp ./cloudooo/samples/cloudooo.conf . # Copy to current folder
Next steps is: The next step is define some attributes in cloudooo.conf:
- Replace the paths of UNO and soffice to OpenOffice.org path in your machine; - uno and soffice path;
- Define the python path in python_path; - python path;
- Define the path to unoconverter.py and unomimemapper.py # This files are created when setup.py is executed - unomimemapper.py and unoconverter.py paths;# This files are created when setup.py is executed;
- user and group;
- paster path in first line;
After setting all configuration, give executable permission to this file.
$ chmod +x cloudooo.conf
Run Application Run Application
=============== ===============
$ paster serve ./cloudooo.conf $ ./cloudooo.conf
Description of Daemon Description of Daemon
......
#!/usr/bin/env paster
[app:main] [app:main]
use = egg:cloudooo use = egg:cloudooo
# #
...@@ -56,3 +57,11 @@ python_path = /usr/bin/python ...@@ -56,3 +57,11 @@ python_path = /usr/bin/python
use = egg:PasteScript#wsgiutils use = egg:PasteScript#wsgiutils
host = 0.0.0.0 host = 0.0.0.0
port = 8011 port = 8011
[exe]
command = serve
daemon = true
user = nobody
group = nobody
log-file = cloudooo.log
pid-file = cloudooo.pid
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment