OK Thanks Steve,

I've managed to get the graphics working by copying the images and
stylesheets directories to the root of the site.

One last question and I'll go and speak to the RailsPlayground guys
about why the app won't run via cpanel.. potentially the problem is
that cpanel is trying to start the app on port 12003, whereas via ./
script/server the app runs on port 3000.  I've updated SITE in the
global_environments.rb to 12003 but when I restart lovdbyless the app
starts on 3000.  I've gone through the all of the  initializers and
environment rb files and see no other place to change this value..
could you suggest where I might make the relevant change?

Many thanks,

Jon

On Aug 6, 1:22 pm, Steven Bristol <[email protected]> wrote:
> On Wed, Aug 5, 2009 at 3:14 PM, Jon<[email protected]> wrote:
>
> > OK,
>
> > I've followed the README, this is my first venture with RoR so some of
> > the terminology is a bit confusing, however, I've updated the
> > following:
>
> > Edit config/initializers/exception_notifier.rb
> >         I amended the ExceptionNotifier.exception_recipients to = %W
> > ([email protected])
> > Edit the config/environment.rb file and change the
> > config.action_controller.session data
> >         I amended ":session_key => 'LolitaLVL'" and ":secret" to the
> > secret generated by rake secret.
> > Edit config/environments/development.rb and production.rb to suit your
> > tastes. (Specifically config.action_mailer.delivery_method)
> >         I changed the config.action_controller.asset_host to "http://
> > lolitateaparty.net" in all 3 positions and left the rest of the
> > settings as default
> > 9. Change the values in config/initializers/global_variables.rb to
> > match your site and domain. (Specifically SITE_NAME, SITE,
> > MAILER_TO_ADDRESS, MAILER_FROM_ADDRESS, REGISTRATION_RECIPIENTS)
> >         I changed SITE_NAME to the site name, SITE = RAILS_ENV ==
> > 'production' ? 'lolitateaparty.net' : 'localhost:3000', and each of
> > the email variables to the admin's email address.
>
> > Also followed the flickr steps and received this error:
> > ruby script/authorize_flickr.rb
> > /home/lolitate/.gem/ruby/1.8/gems/xml-simple-1.0.12/lib/xmlsimple.rb:
> > 984:in `find_xml_file': File does not exist: . (ArgumentError)
> >        from /home/lolitate/.gem/ruby/1.8/gems/xml-simple-1.0.12/lib/
> > xmlsimple.rb:168:in `xml_in'
> >        from /home/lolitate/.gem/ruby/1.8/gems/xml-simple-1.0.12/lib/
> > xmlsimple.rb:203:in `xml_in'
> >        from /home/lolitate/.gem/ruby/1.8/gems/flickr-1.0.2/./
> > flickr.rb:66:in `request'
> >        from /home/lolitate/.gem/ruby/1.8/gems/flickr-1.0.2/./
> > flickr.rb:90:in `login'
> >        from /home/lolitate/.gem/ruby/1.8/gems/flickr-1.0.2/./
> > flickr.rb:61:in `initialize'
> >        from script/authorize_flickr.rb:3:in `new'
> >        from script/authorize_flickr.rb:3
>
> > I've not amended the error files or css etc. yet.
>
> > The paths are still wrong but I'm happy to move everything from the
> > lovdbyless subdirectory to the root of the site if it'll sort this
> > (and make any necessary DB changes).  Still no luck in starting the
> > app from the cpanel.
>
> > Many thanks,
>
> > Jon
>
> If you move it to the root it should fix the pathing problems. If you
> add this to you development.rb or production.rb you should be able to
> keep it in the subdirectory:
>
> config.action_controller.relative_url_root = "/name of subdirectory"
>
> As far as cpanel goes, I have no idea, I haven't used cpanel in years
> and never with a rails app.
>
> cheers,
> steve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Lovd by Less" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lovdbyless?hl=en
Who loves ya baby?
-~----------~----~----~----~------~----~------~--~---

Reply via email to