[Erp5-report] r37656 leonardo - in /erp5/trunk/buildout: ./ profiles/
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Aug 9 13:51:21 CEST 2010
Author: leonardo
Date: Mon Aug 9 13:51:20 2010
New Revision: 37656
URL: http://svn.erp5.org?rev=37656&view=rev
Log:
automatic mysql database creation is not working for the Zope 2.12 version of the buildout. Work around it for the time being
Modified:
erp5/trunk/buildout/README-2.12.txt
erp5/trunk/buildout/profiles/development-2.12.cfg
Modified: erp5/trunk/buildout/README-2.12.txt
URL: http://svn.erp5.org/erp5/trunk/buildout/README-2.12.txt?rev=37656&r1=37655&r2=37656&view=diff
==============================================================================
--- erp5/trunk/buildout/README-2.12.txt [utf8] (original)
+++ erp5/trunk/buildout/README-2.12.txt [utf8] Mon Aug 9 13:51:20 2010
@@ -38,7 +38,7 @@ Run the Zope 2.12 buildout:
$ cd ~/erp5.buildout
$ python2.6 -S bootstrap/bootstrap.py -v 1.4.3
- $ python2.6 -S bin/buildout -v -c buildout-2.12.cfg
+ $ bin/buildout -v -c buildout-2.12.cfg
This will download and install the software components needed to run ERP5 on
Zope 2.12 including Zope 2.12 plus dependencies (including
@@ -54,7 +54,7 @@ Each software component in this buildout
dependencies, including development libraries and executables.
To query what is required for all components, please run:
- $ python2.6 -S bin/buildout install show-requirements
+ $ bin/buildout install show-requirements
Minimal requirements
--------------------
@@ -73,11 +73,6 @@ Post-build check
There isn't yet a post-build check for running ERP5 on Zope 2.12.
-When it's ready, you can check if all components are working correctly by
-typing:
-
- $ make assert
-
Distribution helpers
--------------------
@@ -132,7 +127,23 @@ OpenOffice.org document conversion daemo
to be running before configuring an actual ERP5 instance, so we'll start
supervisor:
-$ var/bin/supervisord # 6
+$ bin/supervisord # 6
+
+Also, we need databases in the mysql server that correspond to both the ERP5
+instance we're going to create, and the testrunner we will want to run:
+
+$ var/bin/mysql -u root
+mysql> create database development_site;
+mysql> grant all privileges on development_site.* to 'development_user'@'localhost' identified by 'development_password';
+mysql> grant all privileges on development_site.* to 'development_user'@'127.0.0.1' identified by 'development_password';
+mysql> create database test212
+mysql> grant all privileges on test212.* to 'test'@'localhost';
+mysql> grant all privileges on test212.* to 'test'@'127.0.0.1';
+
+(there is automated support for creating databases but it's not currently
+working with the Zope 2.12 buildout)
+
+$ var/bin/
Now edit buildout.cfg and add "runUnitTest" (w/o quotes) to 'buildout:parts'.
The "development-instance" part will be pulled in automatically as a
@@ -142,7 +153,7 @@ $ $EDITOR buildout.cfg
Then run buildout again to finish the configuration
-$ python2.6 -S bin/buildout -ov # 8
+$ bin/buildout -ov # 8
Now a fully configured development instance will be available in the directory
"var/development-instance", so you can do:
Modified: erp5/trunk/buildout/profiles/development-2.12.cfg
URL: http://svn.erp5.org/erp5/trunk/buildout/profiles/development-2.12.cfg?rev=37656&r1=37655&r2=37656&view=diff
==============================================================================
--- erp5/trunk/buildout/profiles/development-2.12.cfg [utf8] (original)
+++ erp5/trunk/buildout/profiles/development-2.12.cfg [utf8] Mon Aug 9 13:51:20 2010
@@ -9,7 +9,7 @@ parts +=
runUnitTest
[configuration]
-development_site_bt5_path =
+development_site_bt5_path = ${business-templates:paths}
development_site_products =
${software_definition:products-erp5}
@@ -33,6 +33,9 @@ instance-home = ${configuration:developm
initialization =
import os
os.environ['PATH'] = ':'.join(['${buildout:data-bin-directory}','${buildout:bin-directory}'] + os.environ.get('PATH','').split(':'))
+mysql_create_database = false
+mysql_database = test212
+mysql_user = test
[development-site]
<= zope-instance-template
@@ -40,7 +43,7 @@ initialization =
mkzopeinstance = ${buildout:directory}/bin/mkzopeinstance
# developer by default want to have updatable Data.fs
force-zodb-update = true
-bt5-path =
+bt5-path = ${configuration:development_site_bt5_path}
bt5 =
eggs =
Products.ExternalEditor
@@ -55,7 +58,7 @@ mysql_host = ${configuration:mysql_host}
mysql_port = ${configuration:mysql_port}
# create database
-mysql_create_database = true
+mysql_create_database = false
# below could be set in configuration
mysql_superuser = root
mysql_superpassword =
More information about the Erp5-report
mailing list