Vincent Pérès wrote:
Hello,I would like to package my radiant app before deployment. I created a gems/ folder under vendor/, and copy the gems which are in the radiant vendor/ folder and others for my project. Then, I added the following lines to environment.rb to load my new path : config.load_paths += Dir["#{RAILS_ROOT}/vendor/gems/**"].map do |dir| File.directory?(lib = "#{dir}/lib") ? lib : dir end But it doesn't work, the radiant gems like 'rubypants' can't be loading... what is the best way to do that? Can you explain me?
I'm not sure about this, but I think you're supposed to freeze the Radiant gem. It will take care of everything and put it under the correct paths (I think vendor/radiant)
rake radiant:freeze:gems Also, you can see if this helps: Step 5 of: http://kb.mediatemple.net/questions/152/Installing+Radiant Copy the radiant gem into your application, which will effectively freeze the version of radiant you are using. | cp -a ~/data/rubygems/gems/gems/radiant-0.6.6 vendor/radiant| Cheers, Mohit. 8/19/2008 | 4:18 PM. _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
