Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
saemproject
saemref-formula
Commits
3ab2ee26
Commit
3ab2ee26
authored
Mar 02, 2017
by
Philippe Pepiot
Committed by
Denis Laxalde
Mar 13, 2017
Browse files
README: add recomended usage section
Show a real example with configuration that most users should use.
parent
3f14c164
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.rst
View file @
3ab2ee26
...
...
@@ -47,6 +47,8 @@ Only manage instance configuration files.
Create instance database with ``cubicweb-ctl db-create`` (call implicitly ``db-init``).
WARNING: this will destroy existing database if exists.
``saemref.db-init``
---------------------
...
...
@@ -68,6 +70,47 @@ Requirements
If using postgres as database driver, ensure the `postgres contrib`_ package is
installed on server side.
Recomended usage
================
Given target minion_id is 'srv'.
/srv/salt/top.sls::
base:
'srv':
- saemref
- saemref.supervisor
/srv/pillar/top.sls::
base:
'srv':
- saemref
/srv/pillar/saemref.sls: see `pillar.example <test/pillar/example.sls>`_
Example of reverse proxy configuration for nginx::
server {
listen 80;
server_name saemref.example.com;
location / {
proxy_pass http://srv:8080;
}
location /oai {
proxy_pass http://srv:8081;
}
}
For the first installation run ``salt srv state.sls db-create`` to create
the database (WARNING: this will destroy existing database if exists).
Then run: ``salt srv state.highstate`` to finish the installation.
Testing
=======
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment