The default behavior for logging in:
1) Checks your credentials against the sunflower db
   a) if it successfully authenticates, syncs your data to the local db
   b) if unsuccessful, checks your credentials in the local db and  
logs you in or fails, depending

So if you can't access the sunflower db, you'll jump to 1b) and it  
will check against the local db.

Right now, logging in doesn't get you any better or worse access to  
the SDS. All functionality is open to anyone. Now, obviously that's  
not a great way to run the SDS, but full authentication and access  
controls are coming at a later date.


The SDS needs rails 1.1.6 to run for now. Fortunately, rails gems can  
generally coexist with different versions of themselves. Simply run  
'gem install rails --version 1.1.6', and you should be good to go.

To choose which version of rails, in your config/environment.rb, edit  
the line:
RAILS_GEM_VERSION = '1.1.6'
and change the version to whatever version you'd like.


Hope this helps-
-- Aaron



On May 11, 2007, at 1:11 PM, Cynick wrote:

>
> In the setup, there's a section about requiring a sunflower database
> for login purposes.  "Login functionality will not work correctly
> without a valid username and password to sunflower, which is still to
> be provided. Fortunately, logging in is not necessary at this point in
> time (but that is expected to change)."  I'm confused.  Login is not
> necessary but this sunflower database is still required in the
> configuration?
>
> Also, how and why are we connecting to database.concord.org?  Does
> this mean we can't *truly* have a local SDS running outside of
> Concord?  Can I run the local SDS on my laptop when there's no net
> connection?
>
> sunflower:
>    adapter: mysql
>    database: sunflower
>    host: database.concord.org
>    username: TBD
>    password: TBD
>
> When I was doing the "rake db:migrate" step, I got the following
> error:
>
> Cannot find gem for Rails =1.1.6:
>     Install the missing gem with 'gem install -v=1.1.6 rails', or
>     change environment.rb to define RAILS_GEM_VERSION with your
> desired version.
>
> Does the SDS only work with Rails 1.1.6?  I have rails (1.2.3)
> installed.  Do I need both versions installed?  Can they co-exist
> simultaneously?  I don't want to uninstall 1.2.3 because of other
> applications I'd like to run.  How do I choose which version of rails
> my application is running?
>
> I'm almost there getting this thing running.
>
> Cynick
>
> On Apr 13, 4:25 pm, Aaron Unger <[EMAIL PROTECTED]> wrote:
>> I've finished writing a how-to for setting up the SDS locally. I
>> posted it to the TELS Confluence:http://www.telscenter.org/
>> confluence/display/SAIL/Setting+up+a+local+SDS
>>
>> The instructions cover setting up the software infrastructure (ruby,
>> rails, mysql), checking out and configuring the SDS, and finally
>> running the SDS. The instructions do not cover running the SDS in a
>> production environment (under Apache or Lighttpd, for example). The
>> software infrastructure section is fairly detailed for Mac OS X, but
>> not so much for other platforms. Feel free to add instructions for
>> any other platforms that you get set up with!
>>
>> Currently the instructions will not import any existing SDS data, so
>> you'll finish with a clean install. I'd like to post a mysql dump for
>> anyone who is interested, but need to converse with Stephen about
>> this first.
>>
>> Any feedback is welcome.
>>
>> -- Aaron
>>
>> --
>> Aaron Unger
>> The Concord Consortium
>> [EMAIL PROTECTED]
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SAIL-Dev" 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/SAIL-Dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to