Hey Chaz,

for rails apps,

config/initializers/session_store.rb usually has a secret key

ActionController::Base.session = {
  :key         => '_charles_session',
  :secret      => 'XXXXXX'
}

you can get a good session key by running:
rake secret

Create the file and see how it goes.

--Keenan

On Feb 9, 2010, at 12:23 AM, Charles M Magid wrote:

> Thank you very much in advance for any and all help on this.
> 
> Symptom:
> 
>  The app http://hope-for-the-future.heroku.com/ returns 'App failed
> to start' on load.
> 
>  See Pastie: http://pastie.org/815793 for trace
>  github: http://github.com/trevorturk/static  See deployment to
> heroku 2/3 of the way down the page
> 
>  Error message:
> 
>    cookie_store.rb:163:in `ensure_session_key':   A key is required
> to write a cookie containing the session data.   Use
> config.action_controller.session =   { :key =>
> "_myapp_session", :secret => "some secret phrase" }   in config/
> environment.rb (ArgumentError)
> 
> 
> Briefly:
> 
>  I am using 'static' CMS by trevorturk / static on github and using
> the heroku deployment instructions.
> 
>  The app works locally so I hoped it would just deploy, even though
> there were directions on deploying to heroku I didn't groke, ie:
> 
>      ...
>      mate config/config.yml # configure the production environment
>      rake s3:create
>      rake heroku:config
>      ...
>      heroku rake db:schema:load
>      ...
> 
>      Above may be a red herring.
> 
> 
> Seems like the following lines need to be changed, but to what and
> where is the doc on this?
> 
>  environment.rb has the following lines:
> 
>    config.action_controller.session = {
>      :key => CONFIG['session_key'],
>      :secret => CONFIG['session_secret']
>    }
> 
> Is this a red herring?
> 
> Thank you in advance again,  your most appreciative booster.
> 
> Charles Magid
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Heroku" group.
> To post to this group, send email to her...@googlegroups.com.
> To unsubscribe from this group, send email to 
> heroku+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/heroku?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to