| ... | ... | @@ -11,37 +11,30 @@ The SIB server requires: |
|
|
|
|
|
|
|
From a fresh environment, get the last version of the `sib-manager`:
|
|
|
|
```
|
|
|
|
$ pip install --user -U sib-manager
|
|
|
|
$ python -m pip install -U sib-manager
|
|
|
|
```
|
|
|
|
|
|
|
|
Create a project structure from a development template:
|
|
|
|
Create a project structure from a production template:
|
|
|
|
```
|
|
|
|
$ sib startproject sib_server --production
|
|
|
|
$ cd sib_server
|
|
|
|
$ sib startproject sibserver --production
|
|
|
|
$ cd sibserver
|
|
|
|
```
|
|
|
|
|
|
|
|
For a development server remove the `--production` flag.
|
|
|
|
|
|
|
|
## Configure your LDP packages
|
|
|
|
|
|
|
|
The configuration of the packages goes in `packages.yml` file in the `ldppackages` section. Those are the ones used by the [SIB App](https://git.happy-dev.fr/startinblox/applications/sib-app):
|
|
|
|
The configuration of the packages goes in `packages.yml` file in the `ldppackages` section. Those following ones are given as an example. Yours depend on what your app does.
|
|
|
|
|
|
|
|
```
|
|
|
|
ldppackages:
|
|
|
|
djangoldp_project: djangoldp_project
|
|
|
|
djangoldp_uploader: djangoldp_uploader
|
|
|
|
djangoldp_circle: djangoldp_circle
|
|
|
|
djangoldp_notification: djangoldp_notification
|
|
|
|
djangoldp_account: djangoldp_account
|
|
|
|
djangoldp_skill: djangoldp_skill
|
|
|
|
djangoldp_joboffer: djangoldp_joboffer
|
|
|
|
djangoldp_conversation: djangoldp_conversation
|
|
|
|
djangoldp_profile: djangoldp_profile
|
|
|
|
djangoldp_invoice: djangoldp_invoice
|
|
|
|
oidc_provider: 'git+https://github.com/jblemee/django-oidc-provider.git@develop'
|
|
|
|
```
|
|
|
|
|
|
|
|
FIXME: make a note or link to the detail explanation of the format
|
|
|
|
Details about `packages.yml` format are given in the template file.
|
|
|
|
|
|
|
|
## Configure your server parameters
|
|
|
|
|
| ... | ... | @@ -80,7 +73,7 @@ server: |
|
|
|
|
|
|
|
Install/update the project:
|
|
|
|
```
|
|
|
|
$ sib install sib_server
|
|
|
|
$ sib install server
|
|
|
|
```
|
|
|
|
|
|
|
|
## Launch the server
|
| ... | ... | @@ -93,7 +86,7 @@ $ python manage.py runserver 0.0.0.0:8000 |
|
|
|
To *launch the server in production*:
|
|
|
|
|
|
|
|
* you have to install the static files with `python manage.py collectstatic`
|
|
|
|
* and you have to configure your python server to server the script: `sib_server/sib_server/wsgi.py` on the URL `api.batman.happy-dev.fr/`.
|
|
|
|
* and you have to configure your python server to server the script: `wsgi.py` on the URL `api.batman.happy-dev.fr/`.
|
|
|
|
|
|
|
|
## Tips & tricks
|
|
|
|
|
| ... | ... | |
| ... | ... | |