This is a project for an online weekly diary for Practice School.
clone this repo into your system
git clone https://github.com/kestal-lab/PS2-Diary.git
Activate virtualenv that comes with the project and install required dependencies
source myproject/bin/activate
pip install -r requirements.txt
Once all dependencies are installed, exit the virtualenv
deactivate
The programme uses supervisor and rabbitmq to run celery tasks. Please make sure that those are installed.
yum -y install epel-release
yum -y update
yum -y install erlang socat
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.10/rabbitmq-server-3.6.10-1.el7.noarch.rpm
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
rpm -Uvh rabbitmq-server-3.6.10-1.el7.noarch.rpm
supervisor is included in requirements.txt and will be installed along with other python package from the virtualenv.
Once supervisor and rabbitmq are installed, copy paste the configuration files included in the pulled github repository to the following locations supervisord.conf --> /etc/supervisord.conf PS2-celery.conf --> /etc/supervisord.d/PS2-celery.conf
PS2-celery.conf is not there by default and has to be created explicitly
Run the following commands in the root shell
systemctl start httpd
systemctl start mariadb.service
systemctl enable rabbitmq-server.service
systemctl start rabbitmq-server.service
systemctl enable supervisord
systemctl start supervisord
supervisorctl reread
supervisorctl update
log into 127.0.0.1/PS2/ from your web-browser