Mailinglist Archive: opensuse-buildservice (239 mails)

< Previous Next >
[opensuse-buildservice] patch for obs-api-0.9.1-3.1
  • From: Christian <chris@xxxxxxxxxxxxxxxx>
  • Date: Sun, 04 May 2008 22:27:31 +0000
  • Message-id: <481E3853.3030406@xxxxxxxxxxxxxxxx>
Hi,

followed README.SETUP and found some mistakes, as I see.
I should configure MySQL user and password in 'production' section. And
later I should populate the database with
# RAILS_ENV="production_slave" rake db:migrate
which will not work. So I think "production_slave:" section is meant.

password is opensuse and not openSUSE

updaters, should also do a
# RAILS_ENV="production_slave" rake db:migrate
and not only
rake db:migrate, because they have changed their database from
development to production, haven't they ?

patch attached

Kind Regards
Chris

--- README.SETUP.org 2008-04-25 15:21:02.000000000 +0000
+++ README.SETUP 2008-05-04 22:15:44.000000000 +0000
@@ -98,7 +98,7 @@
TO 'obs'@'%', 'obs'@'localhost';

* Configure your MySQL user and password in
- in the "production:" section of these files:
+ in the "production_slave:" section of these files:

/srv/www/obs/frontend/config/database.yml
/srv/www/obs/webclient/config/database.yml
@@ -244,7 +244,7 @@

http://127.0.42.1

-The default user is "Admin" with the password "openSUSE".
+The default user is "Admin" with the password "opensuse".


6. Using osc with your local build service:
@@ -326,7 +326,7 @@
upgrade the database. Therefore, you should do

# cd /srv/www/obs/frontend/
- # rake db:migrate
+ # RAILS_ENV="production_slave" rake db:migrate

after updating obs-api.


--- README.SETUP.org 2008-04-25 15:21:02.000000000 +0000
+++ README.SETUP 2008-05-04 22:15:44.000000000 +0000
@@ -98,7 +98,7 @@
TO 'obs'@'%', 'obs'@'localhost';

* Configure your MySQL user and password in
- in the "production:" section of these files:
+ in the "production_slave:" section of these files:

/srv/www/obs/frontend/config/database.yml
/srv/www/obs/webclient/config/database.yml
@@ -244,7 +244,7 @@

http://127.0.42.1

-The default user is "Admin" with the password "openSUSE".
+The default user is "Admin" with the password "opensuse".


6. Using osc with your local build service:
@@ -326,7 +326,7 @@
upgrade the database. Therefore, you should do

# cd /srv/www/obs/frontend/
- # rake db:migrate
+ # RAILS_ENV="production_slave" rake db:migrate

after updating obs-api.

< Previous Next >
Follow Ups