Thanks for the reply. Did you mean environment.rb rather than
application.rb?  Assuming you did, I edited the new environment.rb.tmpl
to environment.rb. I notice that the included environment.rb.tmpl refers
to rc1 whereas the one that was in rc1 refers to trunk.

88c88
< info = `svn info`[/Last Changed Rev: (.*?)\n/]
---
> info = `svn info --config-dir /etc/subversion`[/Last Changed Rev:
> (.*?)\n/]
90c90
<   TRACKS_VERSION = '1.50-trunk-rev'+info[/(\d+)/]
---
>   TRACKS_VERSION = '1.50-rc1-rev'+info[/(\d+)/]
92c92
<   TRACKS_VERSION = '1.50-trunk'
---
>   TRACKS_VERSION = '1.50-rc1'

Using the environment.rb.tmpl from the 1.5 release, will not allow me to
connect to tracks using apache, but does with WEBrick.

[Mon Mar 31 13:31:22 2008] [error] [client 172.31.0.11]
/var/www/tracks.example.com/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:204:in
 `establish_connection'
[Mon Mar 31 13:31:22 2008] [error] [client 172.31.0.11] :
[Mon Mar 31 13:31:22 2008] [error] [client 172.31.0.11] development database is 
not configured
[Mon Mar 31 13:31:22 2008] [error] [client 172.31.0.11]  (
[Mon Mar 31 13:31:22 2008] [error] [client 172.31.0.11] 
ActiveRecord::AdapterNotSpecified
[Mon Mar 31 13:31:22 2008] [error] [client 172.31.0.11] )
[Mon Mar 31 13:31:22 2008] [error] [client 172.31.0.11] \tfrom 
/var/www/tracks.example.com/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:195:in
 `establish_connection'
[Mon Mar 31 13:31:22 2008] [error] [client 172.31.0.11] \tfrom 
/var/www/tracks.example.com/public/../config/../vendor/rails/railties/lib/initializer.rb:235:in
 `initialize_database'
[Mon Mar 31 13:31:22 2008] [error] [client 172.31.0.11] \tfrom 
/var/www/tracks.example.com/public/../config/../vendor/rails/railties/lib/initializer.rb:92:in
 `process'
[Mon Mar 31 13:31:22 2008] [error] [client 172.31.0.11] \tfrom 
/var/www/tracks.example.com/public/../config/../vendor/rails/railties/lib/initializer.rb:47:in
 `send'
[Mon Mar 31 13:31:22 2008] [error] [client 172.31.0.11] \tfrom 
/var/www/tracks.example.com/public/../config/../vendor/rails/railties/lib/initializer.rb:47:in
 `run'
[Mon Mar 31 13:31:22 2008] [error] [client 172.31.0.11] \tfrom 
/var/www/tracks.example.com/public/../config/environment.rb:10
[Mon Mar 31 13:31:22 2008] [error] [client 172.31.0.11] \tfrom 
/var/www/tracks.example.com/public/dispatch.cgi:3:in `require'
[Mon Mar 31 13:31:22 2008] [error] [client 172.31.0.11] \tfrom 
/var/www/tracks.example.com/public/dispatch.cgi:3
[Mon Mar 31 13:31:22 2008] [error] [client 172.31.0.11] Premature end of script 
headers: dispatch.cgi

Sorry, I'm rather ruby ignorant.

* Reinier Balt <[EMAIL PROTECTED]> wrote:

>Hi,
>
>I'm not familiar with fcgi, so I cannot help you with that. 
>
>The error message is related to tracks trying to get the revision number of
>your tracks install using svn. I guess that you did not recreate
>application.rb from the 1.5 final release. I removed the check since the
>revision number it is more relevant for development. If you recreate
>application.rb from the template application.rb.tmpl as described in the
>release notes, the error will probably disappear.
>
>Reinier
>
>-----Oorspronkelijk bericht-----
>Van: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Namens Corey Van Allen
>Verzonden: maandag 31 maart 2008 20:10
>Aan: [email protected]
>Onderwerp: [Tracks-discuss] tracks, apache2, mod-fcgid
>
>Anyone have any tips on setting up tracks, apache2, and mod-fcgid so it
>isn't dog slow? Currently using WEBrick is much faster than my desired
>configuration. Below are the relevant portions of my config.
>
># site gtd.example.com
><VirtualHost *:80>
>         ServerName gts.example.com
>         DocumentRoot /var/www/gtd.example.com/public
>
>         LogLevel warn
>         ErrorLog /var/log/apache2/error.log
>         CustomLog /var/log/apache2/access.log combined
>         DefaultInitEnv RAILS_ENV production
>         IdleTimeout -1
>         DefaultMaxClassProcessCount 2
>
>         <Directory "/var/www/gtd.example.com/public">
>                 Options +FollowSymLinks +ExecCGI
>                 AddHandler fcgid-script .fcgi
>                 AllowOverride all
>                 Allow from all
>                 Order allow,deny
>                 ErrorDocument 500 "<h2>Application error</h2>Rails
>application failed to start properly"
>                 RewriteEngine On
>                 RewriteRule ^$ index.html [QSA]
>                 RewriteRule ^([^.]+)$ $1.html [QSA]
>                 RewriteCond %{REQUEST_FILENAME} !-f
>                 RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
>                 FCGIWrapper "/usr/bin/ruby
>/var/www/gtd.example.com/pulic/dispatch.fcgi" .fcgi
>         </Directory>
></VirtualHost>
>
>#fcgid.conf
><IfModule mod_fcgid.c>
>   AddHandler    fcgid-script .fcgi
>   SocketPath    /var/lib/apache2/fcgid/sock
>   SharememPath  /var/lib/apache2/fcgid/shm
>   IPCConnectTimeout 20
>   IPCCommTimeout 40
>   DefaultInitEnv RAILS_ENV production
></IfModule>
>
>
>Also, not sure if this is related or not, in my apache error log I get this
>with each request.
>[Mon Mar 31 12:04:57 2008] [error] [client 172.31.0.11] svn: '.' is not a
>working copy, referer: http://gtd.example.com/projects
>
>Any help would be appreciated.
>

-- 
Corey
_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss

Reply via email to