forgot password?


   
 
Subdirectory problem [SOLVED]
Posted: 28 May 2010 11:44 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  4
Joined  2010-05-28

I have recently installed Tracks
(with much trial and error - as I am completely new to Ruby/Rails)

These are my stats:
Windows 7
Tracks 1.7.1
ruby 1.8.7
rails 2.3.5
mongrel 1.1.5
mongrel_service 0.3.4
Apache 2.2

I have almost (but not quite) got the installation working as desired.

I would really appreciated any help with the following (admittedly minor) problem:

Currently I can access tracks on http://localhost:3000/

What I would like is to access tracks on http://localhost/tracks

I found http://www.getontracks.org/forums/viewthread/284/ quite useful, but am still not there.

I have the following lines in my httpd.conf:

  ProxyPreserveHost On
  ProxyPass /tracks/ http://localhost:3000/
  ProxyPassReverse /tracks/ http://localhost:3000/

These redirects work, but all the links/style sheets etc are http://localhost/* instead of http://localhost/tracks/*

I assumed that I simply needed to set: subdir: “/tracks” in site.yml, but when I do, my mongrel server no longer starts.

on executing
ruby script/server -e production

I get the following error:

=> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)
=> Rails 2.2.2 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 production environment…
Exiting
C:/Ruby/lib/ruby/1.8/yaml.rb:133:in `load’: syntax error on line 25, col 1: ` subdir: “/tracks”’ (ArgumentError)

As I said, any help/suggestions would be greatly appreciated grin

Update: I had a spurious space in front of “subdir”!

Profile
 
 
Posted: 31 May 2010 07:07 AM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  882
Joined  2006-10-05

I think you added ” and ” to subdir. Try it without them.

Profile
 
 
Posted: 06 June 2010 07:55 AM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  4
Joined  2010-05-28

Reinier, thanks for your suggestion.

Unfortunately I have still not managed to get the subdirectory to work. Combinations for the subdir that I have tried include:
subdir: /tracks
subdir: “/tracks”
subdir: “\tracks”
subdir: \tracks
subdir: “/tracks/”

Thank you to all the developers of this program! It is a fantastic program!

I know this is probably not the place to submit feature requests, but I think it would be great if there was the ability to have follow-on actions i.e. “Call Bob” only becomes visible after “Call Alice” has been completed.

Profile
 
 
Posted: 06 June 2010 09:55 AM   [ Ignore ]   [ # 3 ]  
Sr. Member
RankRankRankRank
Total Posts:  882
Joined  2006-10-05

in the upcoming release there are dependencies possible which will hide actions until another is finished. You can try it using the development version on github instead of 1.7.1.

I assume the error is there for all variants.

It should be subdir: “/tracks”, so you had it right in the first place. The syntax error means the site.yml is not correct yml syntax any more.

I believe it could be spurious spaces before subdir?

Could you copy it verbatim (except for the salt, just remove it or change it into XXXX)?

Profile
 
 
Posted: 07 June 2010 10:03 AM   [ Ignore ]   [ # 4 ]  
Newbie
Rank
Total Posts:  4
Joined  2010-05-28

Thanks Reinier!

Yes I did indeed have a spurious space in front of subdir (I removed the #, but not the extra space).

Removing the space solved the problem.

I have now downloaded the development version, and unfortunately I have a new problem, but I will start a new thread, because it is unrelated to the subdir problem.

Profile
 
 
   
 
 
‹‹ Internet Explorer      Computer illiterate! ››