Hi, is there a list which helps new people as existing people to RoR in regards to what to install and when to install it? I''m just looking for a list must have components because I''m really lost at this point with all the announcements. Finally, my hosting company is currentlyhas the following version of rails installed: rails 0.13.1 [rdoc] [www] - depends on actionmailer, actionpack, actionwebservice, activerecord, activesupport, rake. Web-application framework with template engine, control-flow layer, and ORM. Executable is rails. rails 1.0.0 [rdoc] [www] - depends on actionmailer, actionpack, actionwebservice, activerecord, activesupport, rake. Web-application framework with template engine, control-flow layer, and ORM. Executable is rails. Now, is it possible to target different versions of rails locally and deploy the one that''s appropriate for your hosting company? If so, could someone direct me to the instructions to do so? It seems that I may need to reinstall rails 1.0 but I''m not sure what''s the procedure in this regard. Thus, if someone can assist, it would be GREATLY helpful because I need to produce a prototype within the next 7 days and I need to be able to sell RoR as a development platform for future web applications. At this time, they are using .Net stuff and I have been struggling with just getting SQL Server 2005 Express installed and I see GREAT productivity gains by moving to Rails. Thanks in advance, -Conrad
On Friday 07 April 2006 11:53, Conrad Taylor wrote:> Hi, is there a list which helps new people as existing people to RoR > in regards to what to install and when to install it? I''m just > looking for a list must have components because I''m really lost at > this point with all the announcements. Finally, my hosting company is > currentlyhas the following version of rails installed: > > rails 0.13.1 [rdoc] [www] - depends on actionmailer, actionpack, > actionwebservice, activerecord, activesupport, rake. > Web-application framework with template engine, control-flow layer, and ORM. > Executable is rails. > > rails 1.0.0 [rdoc] [www] - depends on actionmailer, actionpack, > actionwebservice, activerecord, activesupport, rake. > Web-application framework with template engine, control-flow layer, and ORM. > Executable is rails. > > Now, is it possible to target different versions of rails locally and > deploy the one that''s appropriate for your hosting company? If so, > could someone direct me to the instructions to do so? It seems that I > may need to reinstall rails 1.0 but I''m not sure what''s the procedure > in this regard. Thus, if someone can assist, it would be GREATLY > helpful because I need to produce a prototype within the next 7 days > and I need to be able to sell RoR as a development platform for future > web applications. At this time, they are using .Net stuff and I have > been struggling with just getting SQL Server 2005 Express installed > and I see GREAT productivity gains by moving to Rails. > > Thanks in advance, > > -ConradAs for the software you need, it should be easy to find on the internet. In short, first you need ruby (1.8.4 or higher recommended. 1.8.3 doesn''t work, 1.8.2 still does, but not for long). Then, depening on if you want to install all the rails packages yourself/or (if using Linux) your package manager, you want to install gems. Meaning, don''t install gems when you install the packages yourself. But I recommend using gems. When it''s installed, simply do "gems install rails --include-dependencies" (or something) (assuming you have a command line OS...), and install a proper db backend ("postgres" recommended when using postgres, instead ruby-postgres). As for the provider''s rails version, it''s very old. Rails provides the ability to freeze gems, meaning you install the rails version you have on your computer in the project directory. When using SVN as version control, you can also include an external repository in /vender. For our project, we have the 1.1 tag of rails as external repository in our project dir in /vendor. The SVN method is recommended, because the "rails:freeze:gems" is quite messy, especially when you unfreeze it again (it throws away all your svn or cvs info in that dir, meaning you have to do a lot of damage control). I hope this is of help.
Hi, I''m receiving the followig error message when I try to start WEBBrick and it exists immediately: $ ruby script/server => Booting lighttpd (use ''script/server webrick'' to force WEBrick) => Rails application started on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server (see config/lighttpd.conf for options) Undefined config variable: var.CWD 2006-04-13 01:30:33: (configfile.c.800) source: config/lighttpd.conf line: 10 pos: 43 parser failed somehow near here: + Exiting Thus, if anyone has any ideas as to how to resolve this issue, it would be GREATLY appreciated. Thanks in advance, -Conrad
Conrad Taylor wrote:> Hi, I''m receiving the followig error message when I try to start > WEBBrick and it exists immediately: > > $ ruby script/server > => Booting lighttpd (use ''script/server webrick'' to force WEBrick) > => Rails application started on http://0.0.0.0:3000 > => Call with -d to detach > => Ctrl-C to shutdown server (see config/lighttpd.conf for options) > Undefined config variable: var.CWD > 2006-04-13 01:30:33: (configfile.c.800) source: config/lighttpd.conf > line: 10 pos: 43 parser failed somehow near here: + > Exiting > > Thus, if anyone has any ideas as to how to resolve this issue, it > would be GREATLY appreciated. >First off, you''re not using WEBrick. You can trigger it with "script/server webrick" as opposed to just "script/server". The server script switches to LightTPD if it''s on your $PATH, unless you tell it otherwise. Secondly, I presume you''re using an old version of LightTPD... If you want to use it, you''ll either need to fix the paths in config/lighttpd.conf to be absolute, or upgrade to a recent version that provides the CWD variable. I think that''s anything > 1.4.10 - just go for the latest. -- Alex
Hi, thanks for the information and I was able to resolve the issue by installing the following: lighttpd-1.4.11.tar.gz I guess the default is WeBrick at this time when performing ruby script/server Thanks again, -Conrad On 4/13/06, Alex Young <alex@blackkettle.org> wrote:> Conrad Taylor wrote: > > Hi, I''m receiving the followig error message when I try to start > > WEBBrick and it exists immediately: > > > > $ ruby script/server > > => Booting lighttpd (use ''script/server webrick'' to force WEBrick) > > => Rails application started on http://0.0.0.0:3000 > > => Call with -d to detach > > => Ctrl-C to shutdown server (see config/lighttpd.conf for options) > > Undefined config variable: var.CWD > > 2006-04-13 01:30:33: (configfile.c.800) source: config/lighttpd.conf > > line: 10 pos: 43 parser failed somehow near here: + > > Exiting > > > > Thus, if anyone has any ideas as to how to resolve this issue, it > > would be GREATLY appreciated. > > > First off, you''re not using WEBrick. You can trigger it with > "script/server webrick" as opposed to just "script/server". The server > script switches to LightTPD if it''s on your $PATH, unless you tell it > otherwise. Secondly, I presume you''re using an old version of > LightTPD... If you want to use it, you''ll either need to fix the paths > in config/lighttpd.conf to be absolute, or upgrade to a recent version > that provides the CWD variable. I think that''s anything > 1.4.10 - just > go for the latest. > > -- > Alex > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >