I give comments for each steps of official site instruction. For deploying new Review Board site follow documentation
yum install ReviewBoard step : You have to add Epel package repositories to your system.
On your linux box.
- sudo rpm -i epel-release-6-8.noarch.rpm
yum install python-setuptools step: No comments.
yum install python-devel step: No comments.
yum install memcached step: After installation you will have daemon in /etc/init.d/memcashed. If you have problem with cashing, restart it.
yum install patch step: No comments.
easy_install mysql-python step: No comments.
easy_install P4PythonInstaller step: No comments.
PyLucene is optional. Current Five9 reviewboard does not have review requests searching.
After installing all packages you have to configure Review Board site via apache.
Follow steps here: http://www.reviewboard.org/docs/manual/1.7/admin/installation/creating-sites/#creating-sites
It is very pour instruction, huge comments below:
rb-site install /var/www/reviews.example.com
- Follow steps in console.
- Go to /var/www/reviews.example.com/conf
- apache-wsgi.conf - It needs for apache configuration. It is not fully completed.
- httpd.conf: General apache configuration. It must be placed here: /etc/httpd/conf/
- reviewboard.conf: Apache configuration for reviewboard site. It must be placed here: /etc/httpd/conf.d/
- apache-wsgi.conf - It needs for apache configuration. It is not fully completed.
- settings_local.py - You have to add this setting to reviewboard django project settings.py (/usr/lib/python2.6/site-packages/ReviewBoard-1.7.12-py2.6.egg/reviewboard/setting.py)
- settings.py: Review Board django project general settings. It must be placed here: /usr/lib/python2.6/site-packages/ReviewBoard-1.7.12-py2.6.egg/reviewboard
- settings_local.py: Review Board django project additional settings. It must be placed here: /usr/lib/python2.6/site-packages/ReviewBoard-1.7.12-py2.6.egg/reviewboard
- settings_local.py - You have to add this setting to reviewboard django project settings.py (/usr/lib/python2.6/site-packages/ReviewBoard-1.7.12-py2.6.egg/reviewboard/setting.py)
- Go to /var/www/reviews.example.com/htdocs
- Create simlink like this: errordocs -> /usr/lib/python2.6/site-packages/ReviewBoard-1.7.12-py2.6.egg/reviewboard/htdocs/errordocs
- For creating media and static content use collectstatic:
cd /usr/lib/python2.6/site-packages/ReviewBoard-1.7.12-py2.6.egg/reviewboard/ python reviewboard/manage.py collectstatic
- reviewboard.wsgi: Connection between env and apache. It must be placed here: /var/www/reviewboard/htdocs
Database configuration:
rb-site will do all work automatically.
Notices:
- How to create database superuser:
- Connect to mysql under root: mysql -u root -p
- Create user: create user '|user|'@'localhost' identified by '|password|';
- Grant all database privileges to user: grant all privileges on |database_name|.* to |user|@localhost identified by '|password|';
- Do not forget change |user|, |password|, |database_name| on real variable.
- manage.py tool
- Go to /usr/lib/python2.6/site-packages/ReviewBoard-1.7.12-py2.6.egg
- reviewboard/manage.py --help . It shows all django project options. For more information look at:https://docs.djangoproject.com/en/dev/ref/django-admin/
- Important options:
- createsuperuser - create django admin for admin site.
- collectstatic - copy all media and static.
- syncdb - fill database follow models if django project. Also execute fixtures.
- dumpdb - dump current database.
- restoredb - restore db from dump.
reviewboard/manage.py dumpdb > reviewboard.dump reviewboard/manage.py restoredb < reviewboard.dump
- runserver 0.0.0.0:8081 - run django project under open localhost, 8081 port. After execution be sure that server is started and go in browser: |your reviewboard server IP|:8081
- Important options:
Services:
- services is responsible to Review Board project:
* /etc/init.d/httpd * /etc/init.d/memcashed * /etc/init.d/mysqld
Please, be sure that there states are 'is started...'. For each change in database or code execute under root/etc/init.d/httpd restart
Logs:
If some is broken, first action take a look on logs:
ReviewBoard log:
/var/www/reviewboard/logs/reviewboard.log
Apache log:
/etc/httpd/logs/access_log
/etc/httpd/logs/error_log
Комментариев нет:
Отправить комментарий