From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DNS_FROM_OPENWHOIS, SPF_PASS autolearn=no version=3.2.5 Message-ID: <4C343299.3080309@rambler.ru> Date: Wed, 07 Jul 2010 10:54:01 +0300 From: =?windows-1251?Q?=C4=E5=ED=E8=F1_=DF=E3=EE=F4=E0=F0=EE=E2?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8pre) Gecko/20100202 Lightning/1.0b1 Thunderbird/3.0.1 MIME-Version: 1.0 To: ALT Linux Sisyphus discussions References: <4C30B098.1030507@rambler.ru> <20100706210902.GA3425@altlinux.org> In-Reply-To: <20100706210902.GA3425@altlinux.org> Content-Type: multipart/mixed; boundary="------------060605010409000705050200" Subject: Re: [sisyphus] =?windows-1251?b?wiDt4OTl5uTlIOfg7/Px8ujy/CByZWRtaW5l?= X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Sisyphus discussions List-Id: ALT Linux Sisyphus discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jul 2010 07:54:11 -0000 Archived-At: List-Archive: List-Post: This is a multi-part message in MIME format. --------------060605010409000705050200 Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 8bit 07.07.2010 00:09, Alexey I. Froloff пишет: > On Sun, Jul 04, 2010 at 07:02:32PM +0300, Di wrote: > >> rake aborted! >> production_maintenance database is not configured >> > В README всё написано. Надо настроить базу ещё в одном конфиге Всё так и было настроено. (прикрепил конфиги) drwxrwxrwt 7 root root 4096 Jul 6 23:08 ./ -rw-rw-rw- 1 root root 210944 Jul 4 20:13 /tmp/test2 Вроде, с конфигами всё хорошо... как и с правами =\ Пробую настроить: # pwd /usr/share/redmine # rake SCHEMA=/dev/null RAILS_ENV=production_maintenance X_ALT_SITEID=test2 RAILS_ETC=/etc/redmine/test2 db:migrate db:migrate_plugins (in /usr/share/redmine) rake aborted! production_maintenance database is not configured (See full trace by running task with --trace) # rake SCHEMA=/dev/null RAILS_ENV=production X_ALT_SITEID=test2 RAILS_ETC=/etc/redmine/test2 db:migrate db:migrate_plugins (in /usr/share/redmine) # rake SCHEMA=/dev/null RAILS_ENV=maintenance X_ALT_SITEID=test2 RAILS_ETC=/etc/redmine/test2 db:migrate db:migrate_plugins (in /usr/share/redmine) rake aborted! undefined method `[]' for nil:NilClass (See full trace by running task with --trace) Т.е. БД он заполняет в режиме production, но как раз полезную штуку с режимами production/maintenance и разделением прав, сделать не получается. Может, это связано с тем, что я sqlite использую (хотя, это было очень странно)? --------------060605010409000705050200 Content-Type: text/plain; name="database.yml" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="database.yml" production: adapter: sqlite3 database: /tmp/test2 encoding: utf8 --------------060605010409000705050200 Content-Type: text/plain; name="database-maintenance.yml" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="database-maintenance.yml" production: adapter: sqlite3 database: /tmp/test2 encoding: utf8 --------------060605010409000705050200 Content-Type: text/x-vcard; charset=utf-8; name="denyago.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="denyago.vcf" begin:vcard fn:Denis Timurovich Yagofarov n:Yagofarov;Denis Timurovich org:ITGIS NASU adr:room 615;;Chokolovski blvdr., 13;Kiev;;03151;Ukraine email;internet:denyago@rambler.ru title:system administrator tel;work:80445201209 tel;cell:80662933760 note;quoted-printable:xmmp: denyago@gmail.com=0D=0A= xmmp: diyago@jabber.te.ua x-mozilla-html:FALSE version:2.1 end:vcard --------------060605010409000705050200--