fyi, regarding your original question, i left a comment on the checkin that introduced SecureRandom.hex:
http://github.com/insoshi/insoshi/commit/26bbafcc839bba86ddb5b5b03c5179f93a0c3e21#comments after reviewing my comment, my recollection is that it seems ActiveSupport is not available inside Rails::Initializer.run? cheers, tom On Aug 3, 4:04 pm, HeresTomWithTheWeather <[email protected]> wrote: > i'll be glad to help out as i worked with some others on this on a > fork of insoshi called oscurrency. the first half of the work was > done by lee azzarello (lazzarello) and shown off in this > screencast:http://www.opensourcecurrency.org/2010/01/oscurrency-heroku-deploymen... > > the second half was done by mike travers (mtravers) and shown off in > this > screencast:http://www.opensourcecurrency.org/2010/04/easy-heroku-install-and-che... > > this second screencast includes instructions for a quick heroku > install. after we got heroku compatibility working, i swapped out the > authentication to use authlogic (with openid). the insoshi fork > (forked in october 2008 before the ui inhancements but has the groups > feature merged in) i'm maintaining is here: > > http://github.com/austintimeexchange/oscurrency > > maybe we could create a #insoshi irc channel on freenode to > collaborate? fyi, we did a talk called "Using Insoshi to support > Community Currencies" at lonestar ruby conference last year. if any > of y'all will be at LSRC at the end of the month, it would be fun to > work with others on insoshi there. > > cheers, > tom > > On Aug 3, 2:02 pm, dovadi <[email protected]> wrote: > > > > > Hi Tom, > > > I see a different error: > > seehttp://skitch.com/dovadi/dxmwn/app-failed-to-start. > > > Heroku has a read only file system. If you don't have a file named > > 'secret' in your root directory, it tries to create a file and write a > > secret key to it. > > Seehttp://skitch.com/dovadi/dxmi8/config-environment.rb-at-master-from-i.... > > > The solution is add a file in your root directory with the name > > 'secret' and add a string from at least 30 and all random characters. > > You can use 'rake secret' in the console to generate such a string. > > (or you can replace the secret variable in environment.rb with this > > string) > > > Normally you wouldn't add this file (or secret string) to your > > repository, but if it is a private repo and you want to use Heroku you > > can choose do this and deploy the new version and it should work. > > > See alsohttp://guides.rubyonrails.org/security.html#session-storage > > > Frank > > > On Aug 3, 5:26 pm, Tom Scott <[email protected]> wrote: > > > > Has anyone tried deploying Insoshi on Heroku? I've been trying for > > > about a week now! > > > > I've been having problems specifically with this line of code in > > > "config/environment.rb": > > > secret = ActiveSupport::SecureRandom.hex(64) > > > > Heroku's server throws a NameError (uninitialized constant) when it > > > gets to this line. Although my code is slightly modified from the > > > insoshi github repo, I have not touched environment.rb at all, and > > > definitely not this bit of code here. > > > > You can view the app error athttp://illup.heroku.com/ -- You received this message because you are subscribed to the Google Groups "Insoshi" 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/insoshi?hl=en.
