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