mirror of
https://github.com/EDCD/EDDN.git
synced 2025-06-20 08:43:55 +03:00
docs/running: Move DB init after DB install/setup
* Also we might as well make examples clearer by assuming `~/eddn/dev/EDDN/` for the git clone.
This commit is contained in:
parent
f195a53872
commit
ae4f54b608
@ -38,6 +38,14 @@ You will need a mysql/mariab database:
|
|||||||
git clone https://github.com/EDCD/EDDN.git
|
git clone https://github.com/EDCD/EDDN.git
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
We'll assume this `~/eddn/dev/EDDN` path elsewhere in this document.
|
||||||
|
|
||||||
|
## Initialising Database Schema
|
||||||
|
You will need to get the database schema in place:
|
||||||
|
|
||||||
|
mysql -p eddn < ~/eddn/dev/EDDN/schema.sql
|
||||||
|
<password>
|
||||||
|
|
||||||
## Concepts
|
## Concepts
|
||||||
There are three components to this application.
|
There are three components to this application.
|
||||||
|
|
||||||
@ -141,12 +149,6 @@ It sets:
|
|||||||
1. Configures the database connection and credentials.
|
1. Configures the database connection and credentials.
|
||||||
1. Turns off the relay duplicate check.
|
1. Turns off the relay duplicate check.
|
||||||
|
|
||||||
## Initialising Database Schema
|
|
||||||
You will need to get the database schema in place:
|
|
||||||
|
|
||||||
mysql -p eddn < <git source root>/schema.sql
|
|
||||||
<password>
|
|
||||||
|
|
||||||
## Running
|
## Running
|
||||||
You have some choices for how to run the application components:
|
You have some choices for how to run the application components:
|
||||||
|
|
||||||
@ -183,7 +185,7 @@ Those files are not currently installed anywhere by the `setup.py` script, so
|
|||||||
you'll need to manually copy them into somewhere convenient, e.g.:
|
you'll need to manually copy them into somewhere convenient, e.g.:
|
||||||
|
|
||||||
mkdir -p ${HOME}/.local/share/eddn
|
mkdir -p ${HOME}/.local/share/eddn
|
||||||
cp -r <eddn source root>/contrib/monitor ${HOME}/.local/share/eddn
|
cp -r ~/eddn/dev/EDDN/contrib/monitor ${HOME}/.local/share/eddn
|
||||||
chmod -R og+rX ${HOME} ${HOME}/.local ${HOME}/.local/share ${HOME}/.local/share/eddn
|
chmod -R og+rX ${HOME} ${HOME}/.local ${HOME}/.local/share ${HOME}/.local/share/eddn
|
||||||
|
|
||||||
You will need to configure a reverse proxy to actually enable access to this.
|
You will need to configure a reverse proxy to actually enable access to this.
|
||||||
@ -194,7 +196,7 @@ You will need to ensure that the Monitor nginx setup can see the schema files
|
|||||||
in order to serve them for use by the Gateway:
|
in order to serve them for use by the Gateway:
|
||||||
|
|
||||||
mkdir -p ${HOME}/.local/share/eddn
|
mkdir -p ${HOME}/.local/share/eddn
|
||||||
cp -r <eddn source root>/schemas ${HOME}/.local/share/eddn
|
cp -r ~/eddn/dev/EDDN/schemas ${HOME}/.local/share/eddn
|
||||||
chmod -R og+rX ${HOME}/.local/share/eddn/schemas
|
chmod -R og+rX ${HOME}/.local/share/eddn/schemas
|
||||||
|
|
||||||
## Netdata
|
## Netdata
|
||||||
|
Loading…
x
Reference in New Issue
Block a user