Show More
@@ -1,63 +1,64 b'' | |||
|
1 | 1 | App Enlight |
|
2 | 2 | ----------- |
|
3 | 3 | |
|
4 | 4 | Automatic Installation |
|
5 | 5 | ====================== |
|
6 | 6 | |
|
7 | 7 | Use the ansible scripts in the `/automation` directory to build complete instance of application |
|
8 | 8 | You can also use `packer` files in `/automation/packer` to create whole VM's for KVM and VMWare. |
|
9 | 9 | |
|
10 | 10 | Manual Installation |
|
11 | 11 | =================== |
|
12 | 12 | |
|
13 | 13 | Install the app by performing |
|
14 | 14 | |
|
15 | 15 | pip install -r requirements.txt |
|
16 | ||
|
16 | 17 | python setup.py develop |
|
17 | 18 | |
|
18 | 19 | To run the app and configure datastore you need to run: |
|
19 | 20 | |
|
20 | 21 | * elasticsearch (2.2+ tested) |
|
21 | 22 | * postgresql 9.5+ |
|
22 | 23 | * redis 2.8+ |
|
23 | 24 | |
|
24 | 25 | after installing the application you need to: |
|
25 | 26 | |
|
26 | 27 | 1. (optional) generate production.ini (or use a copy of development.ini) |
|
27 | 28 | |
|
28 | 29 | appenlight-make-config production.ini |
|
29 | 30 | |
|
30 | 31 | 2. setup database structure: |
|
31 | 32 | |
|
32 | 33 | appenlight-migrate-db -c FILENAME.ini |
|
33 | 34 | |
|
34 | 35 | 3. to configure elasticsearch: |
|
35 | 36 | |
|
36 | 37 | appenlight-reindex-elasticsearch -c FILENAME.ini |
|
37 | 38 | |
|
38 | 39 | 4. create base database objects |
|
39 | 40 | |
|
40 | 41 | appenlight-initializedb -c FILENAME.ini |
|
41 | 42 | |
|
42 | 43 | 5. generate static assets |
|
43 | 44 | |
|
44 | 45 | appenlight-static -c FILENAME.ini |
|
45 | 46 | |
|
46 | 47 | Running application |
|
47 | 48 | =================== |
|
48 | 49 | |
|
49 | 50 | to run the main app: |
|
50 | 51 | |
|
51 | 52 | pserve development.ini |
|
52 | 53 | |
|
53 | 54 | to run celery workers: |
|
54 | 55 | |
|
55 | 56 | celery worker -A appenlight.celery -Q "reports,logs,metrics,default" --ini FILENAME.ini |
|
56 | 57 | |
|
57 | 58 | to run celery beat: |
|
58 | 59 | |
|
59 | 60 | celery beat -A appenlight.celery --ini FILENAME.ini |
|
60 | 61 | |
|
61 | 62 | to run appenlight's uptime plugin: |
|
62 | 63 | |
|
63 | 64 | appenlight-uptime-monitor -c FILENAME.ini |
General Comments 0
You need to be logged in to leave comments.
Login now