##// END OF EJS Templates
Harden whitespace in log messages to show newlines, tabs, and spaces....
Harden whitespace in log messages to show newlines, tabs, and spaces. Due to the additional and inconsistent height of log messages, the other columns are vertically aligned to the top rather than the middle.
idpaterson -
r45:5967ee78
Show More
Name Size Modified Last Commit Author
/ backend
src
CHANGELOG.rst Loading ...
MANIFEST.in Loading ...
README.md Loading ...
requirements.txt Loading ...
setup.py Loading ...

appenlight README

To run the app you need to have meet prerequsites:

  • running elasticsearch (2.3+ tested)
  • running postgresql (9.5+ required)
  • running redis

Setup basics

Set up the basic application database schema:

appenlight_initialize_db config.ini

Set up basic elasticsearch schema:

appenlight-reindex-elasticsearch -c config.ini -t all

Installed the appenlight uptime plugin

Running

To run the application itself:

pserve --reload development.ini

To run celery queue processing:

celery worker -A appenlight.celery -Q "reports,logs,metrics,default" --ini=development.ini

To run celery beats scheduling:

celery beat -A appenlight.celery --ini=development.ini

You should also run the channelstream websocket server for real-time notifications

channelstream -i filename.ini

Testing

To run test suite:

py.test appenlight/tests/tests.py --cov appenlight (this looks for testing.ini in repo root)

WARNING!!!
Some tests will insert data into elasticsearch or redis based on testing.ini