Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Installation  >  Windows  >  Thread
   
 
Installing Tracks 1.5rc1 on InstantRails
 
dawie
Posted: 13 March 2008 03:14 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  5
Joined  2008-03-13

I get the following error. Any ideas what I can do to fix this?

C:\InstantRails\rails_apps\tracks-1.5rc1>ruby script/server -e
=> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)
server: missing argument: -e
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment…
** has_many_polymorphs: rails environment detected
** has_many_polymorphs: loaded ok
SwitchEnvironmentController: missing default helper path switch_environment_help
er
UnobtrusiveJavascriptController: missing default helper path unobtrusive_javascr
ipt_helper
** has_many_polymorphs: autoload hook invoked
** has_many_polymorphs: preloading parent model Tag
** has_many_polymorphs: associating Tag.taggables
ables
** has_many_polymorphs: injecting dependencies
script/server: No such file or directory - svn info—config-dir /etc/subversion

Exiting
C:/InstantRails/rails_apps/tracks-1.5rc1/config/environment.rb:88: You have a ni
l object when you didn’t expect it! (NoMethodError)
You might have expected an instance of Array.
The error occurred while evaluating nil.[]    from C:/InstantRails/ruby/lib/ru
by/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’
      from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require
.rb:27:in `require’
      from C:/InstantRails/rails_apps/tracks-1.5rc1/vendor/rails/activesupport
/lib/active_support/dependencies.rb:495:in `require’
      from C:/InstantRails/rails_apps/tracks-1.5rc1/vendor/rails/activesupport
/lib/active_support/dependencies.rb:342:in `new_constants_in’
      from C:/InstantRails/rails_apps/tracks-1.5rc1/vendor/rails/activesupport
/lib/active_support/dependencies.rb:495:in `require’
      from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin
32/bin/../lib/mongrel/rails.rb:147:in `rails’
      from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin
32/bin/mongrel_rails:113:in `cloaker_’
      from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin
32/lib/mongrel/configurator.rb:149:in `call’
      ... 17 levels…
      from C:/InstantRails/rails_apps/tracks-1.5rc1/vendor/rails/activesupport
/lib/active_support/dependencies.rb:495:in `require’
      from C:/InstantRails/rails_apps/tracks-1.5rc1/vendor/rails/railties/lib/
commands/server.rb:39
      from script/server:3:in `require’
      from script/server:3

C:\InstantRails\rails_apps\tracks-1.5rc1>

Profile
 
Reinier Balt
Posted: 13 March 2008 08:28 AM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  216
Joined  2006-10-05

Tracks is looking in application.rb line 88 for an SVN client. Do you have one installed? Normally Tracks would handle the case that SVN is not there…

If you do have a SVN client, please try to change the line to

info = `svn info `[/Last Changed Rev: (.*?)\n/]

and see if this works.

Profile
 
bsag
Posted: 13 March 2008 08:57 AM   [ Ignore ]   [ # 2 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  195
Joined  2006-03-05

Actually, I thought that the problem was that an argument wasn’t given for -e. That seems to be what the 3rd line of the error output is suggesting. Try:

ruby script/server -e production 

But the svn line may be another problem. However, I believe that the block in environment.rb takes into account that people might not have svn installed.

Profile
 
dawie
Posted: 15 March 2008 07:14 AM   [ Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  5
Joined  2008-03-13

If you do have a SVN client, please try to change the line to

info = `svn info `[/Last Changed Rev: (.*?)\n/]

doesn’t work:

I had to comment out all the info stuff like this:

#info = `svn info—config-dir /etc/subversion`[/Last Changed Rev: (.*?)\n/]
#info = `svn info `[/Last Changed Rev: (.*?)\n/]
#if info
#  TRACKS_VERSION = ‘1.50-rc1-rev’+info[/(\d+)/]
#else
#  TRACKS_VERSION = ‘1.50-rc1’
#end

When I go to: http://localhost:3000/signup I get the following:
Rendering layoutfalseactionindex within layouts/standard
Rendering users/index


ActionView::TemplateError (undefined method `each’ for nil:NilClass) on line #17
of app/views/users/index.rhtml:
14:  <th>Total notes</th>
15:  <th> </th>
16:  </tr>
17:  <% for user in @users %>
18:    <tr <%= “class=\“highlight\“” if user.is_admin? %> id=“user-<%= user.id
%>“>
19:    <td><%=h user.login %></td>
20:    <td><%=h user.last_name? ? user.display_name : ‘-‘ %></td>

Any ideas?

Profile
 
Reinier Balt
Posted: 15 March 2008 12:41 PM   [ Ignore ]   [ # 4 ]  
Sr. Member
RankRankRankRank
Total Posts:  216
Joined  2006-10-05

you commented out to much now, since TRACKS_VERSION is not defined anymore. So {{{TRACKS_VERSION = ‘1.5-rc1’}}} should be enough

Are you sure you copied the complete error message? Or was there more above? I think should be more above which mentioned the missing TRACKS_VERSION

Profile
 
Reinier Balt
Posted: 15 March 2008 12:42 PM   [ Ignore ]   [ # 5 ]  
Sr. Member
RankRankRankRank
Total Posts:  216
Joined  2006-10-05

whoeps, forget the {{{ and }}}

Profile
 
dawie
Posted: 16 March 2008 04:25 PM   [ Ignore ]   [ # 6 ]  
Newbie
Rank
Total Posts:  5
Joined  2008-03-13

I am struggeling to get it going. What exactly do you want me to put in the environment.rb file?

{{{TRACKS_VERSION = ‘1.5-rc1’}}}
or
“whoeps, forget the {{{ and }}}“

{{{{{{TRACKS_VERSION = ‘1.5-rc1’}}}}}} ?

or

TRACKS_VERSION = {{{TRACKS_VERSION = ‘1.5-rc1’}}}

Thanks for your reply and help

Profile
 
dawie
Posted: 16 March 2008 04:27 PM   [ Ignore ]   [ # 7 ]  
Newbie
Rank
Total Posts:  5
Joined  2008-03-13

I get:

C:/InstantRails/rails_apps/tracks-1.5rc1/config/environment.rb:95: odd number li
st for Hash
TRACKS_VERSION = {{{TRACKS_VERSION = ‘1.5-rc1’}}}

Profile
 
Reinier Balt
Posted: 16 March 2008 08:50 PM   [ Ignore ]   [ # 8 ]  
Sr. Member
RankRankRankRank
Total Posts:  216
Joined  2006-10-05

sorry for the confusion. Try

TRACKS_VERSION = ‘1.5-rc1’

Profile
 
dawie
Posted: 17 March 2008 04:06 AM   [ Ignore ]   [ # 9 ]  
Newbie
Rank
Total Posts:  5
Joined  2008-03-13

That solved my problems.

Thanks man.

Profile
 
Reinier Balt
Posted: 17 March 2008 12:19 PM   [ Ignore ]   [ # 10 ]  
Sr. Member
RankRankRankRank
Total Posts:  216
Joined  2006-10-05

great! enjoy grin

Profile
 
   
 
 
‹‹ Install with Instant Rails fails on "rake migrate" and "rake db_schema_import"      Installing Trackstar 1.5 ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.1 (20081028)
Script Executed in 0.1454 seconds

Atom Feed
RSS 2.0