StartinBlox Manager
Project description
# Startin’Blox Manager
## Requirements
You will need both Python3 and Pip3 installed.
Install the sib command line: ` $ pip3 install --user -U sib-manager `
## Get started with a development instance
Create a new project with your favorite modules. To create a project with djangoldp_project and oidc_provider : ` $ sib startproject myproject -m djangoldp_project -m oidc_provider:django-oidc-provider $ sib initproject myproject `
And launch it locally ! ` $ cd myproject $ python3 manage.py runserver `
For development instance, the administartion interface is available at http://localhost/admin/ with default admin user and password.
## Usage
sib manager can be used to deploy local development and production instances. Whereas a development instance relies on testing components as a sqlite database and comes with default configuration, a production instance needs more parameters to configure the postgresql database.
A production setup can made by the –production switch option.
- startproject: creates a fresh project tree
–module (or -m) options gives the startin’blox module with the format <package>:<distribution> (distribution is optional)
–site-url is used to generate links and ids (default to http://localhost:8000)
–db-host, –db-name, –db-user and –db-pass are used to configure the database (mandatory with –production)
–smtp-host, –smtp-user and –smtp-pass are used to configure the SMTP (optional)
- initproject: initializes a project tree
–admin-name, –admin-pass and –admin-email give details about the default admin (default to admin in development, mandatory in production)
Both startproject and initproject take an optional path for the project as a second argument to define the project directory.
## Contribute
Get the last unreleased version of the project: ` $ pip3 install --user -U git+https://git.happy-dev.fr/startinblox/devops/sib `
## Testing in docker
Test production setup with postgres: ` # docker network create sib # docker run --rm --network sib --name db -e POSTGRES_PASSWORD=test -d postgres # docker run --rm --network sib -p 127.0.0.1:80:8000 -v $PWD:/code -it python:3.6 bash # pip install -e .[dev] # sib startproject --production --db-host db --db-name postgres --db-user postgres --db-pass test -m djangoldp_project -m oidc_provider:django-oidc-provider myproject /tmp/test-sib-docker # sib initproject --production --admin-name admin --admin-email 'something' --admin-pass admin myproject /tmp/test-sib-docker # cd /tmp/test-sib-docker/ # python manage.py runserver 0.0.0.0:8000 `
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sib_manager-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3996741e51d26a2fcc05bc575698747ef28c0c1e88aee332ee1c838bdcc5f624 |
|
MD5 | eea06f655856f8c7a745bf83107fd03c |
|
BLAKE2b-256 | 1266ad839f475a23b38c390fdc8841ecc42c101e6ea493df5b0e495207a9e1af |