If you manage to run in a sub directory, I think you should be able to do that. For each instance you have to change database.yml and environment.rb. In database.yml you specify details of the database, each EPF Wiki instance will have an own database. After you change database.yml you can create the database using a terminal export RAILS_ENV=production (assuming you are on Linux) rake db:create db:migrate
In environment.rb you specify the root folder as discussed. Each EPF Wiki instance will also have its own application directory of course. On Tue, Feb 8, 2011 at 4:06 PM, John Allen <[email protected]> wrote: > Onno, > > That fixed it! Just need to work out how to host multiple instances of EPF > wiki without using named hosts. Is it possible? > > John > > ------------------------------ > *From:* [email protected] [mailto:[email protected]] *On > Behalf Of *Onno van der Straaten > *Sent:* 08 February 2011 14:11 > *To:* Eclipse Process Framework Project Developers List > *Subject:* Re: [epf-dev] NoMethodError in # when using EPF Wiki - baseline > process, comments tab - > > Hi John, > Hard to say from this alone. But can you try the following. > > Open the file app/helpers/application_helper.rb and find the method > link_to_comment. The method contains the following code > link_to(truncate(strip_tags(comment.text)), :controller => 'pages', :action > => 'discussion', :site_folder => comment.site.folder, :id => > comment.page.id) > > Can you remove truncate, so change this line to > link_to(strip_tags(comment.text), :controller => 'pages', :action => > 'discussion', :site_folder => comment.site.folder, :id => comment.page.id) > > > Restart the web server and try again. This problem could be related to > https://bugs.eclipse.org/bugs/show_bug.cgi?id=333900 so removing truncate > can be a workaround. > > If problems persist and this is a new installationI suggest you recreate > the database and try again. Are you doing this on Windows or Linux? > > HTH, > Onno > > > > > > On Tue, Feb 8, 2011 at 2:14 PM, John Allen <[email protected]> wrote: > >> Can anyone suggest why we are getting this: >> >> Showing *comments/_comments_list.rhtml* where line *#26* raised: >> >> undefined method `length' for #<Enumerable::Enumerator:0x2aae0e6db8e8> >> >> Extracted source (around line *#26*): >> >> 23: <% comment.review_note = 'Click to add...' if >> comment.review_note.blank? %> >> 24: <tr> >> 25: <td><%= comment.id %></td> >> 26: <td><%= link_to_comment comment %></td> >> 27: <td><%= comment.created_on.strftime("%I:%M %p >> %d-%b-%y") %></td> >> 28: <td><%= link_to_user comment.user %></td> >> 29: <td><%= link_to_page comment.page %></td> >> >> Trace of template inclusion: /sites/description.rhtml >> >> RAILS_ROOT: /apps/epfwiki/epfwiki >> >> *Application Trace* <http://dse/sites/comments/3#> | *Framework >> Trace*<http://dse/sites/comments/3#> >> | *Full Trace* <http://dse/sites/comments/3#> >> /apps/epfwiki/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/text_helper.rb:50:in >> `truncate' >> app/helpers/application_helper.rb:248:in `link_to_comment' >> app/views/comments/_comments_list.rhtml:26:in >> `_run_erb_47app47views47comments47_comments_list46rhtml' >> app/views/comments/_comments_list.rhtml:22:in `each' >> app/views/comments/_comments_list.rhtml:22:in >> `_run_erb_47app47views47comments47_comments_list46rhtml' >> app/views/sites/description.rhtml:52:in >> `_run_erb_47app47views47sites47description46rhtml' >> app/controllers/sites_controller.rb:144:in `comments' >> >> *Request* >> >> *Parameters*: >> >> {"id"=>"3"} >> >> *Show session dump* <http://dse/sites/comments/3#> >> >> *Response* >> >> *Headers*: >> >> {"cookie"=>[], >> "Cache-Control"=>"no-cache"} >> >> Thanks, >> John >> >> *______________________________________________* >> *John Allen -* Solution Architect, Senior Manager >> *t* +44 (0)207 812 4626 |*** m* +44 (0)778 753 3602 >> *f* +44 (0)207 812 4100 |*** c* +44 (0)207 897 9424 # 93410 59633 >> ***a* Detica | 2 Arundel Street | London | WC2R 3AZ | UK >> *Please do not send emails to this account protectively marked as >> restricted or above* >> *______________________________________________* >> *www.detica.com* – a BAE Systems company** >> >> Please consider the environment before printing this email. >> >> This message should be regarded as confidential. If you have received this >> email in error please notify the sender and destroy it immediately. >> Statements of intent shall only become binding when confirmed in hard copy >> by an authorised signatory. The contents of this email may relate to >> dealings with other companies within the Detica Limited group of companies. >> >> Detica Limited is registered in England under No: 1337451. >> >> Registered offices: Surrey Research Park, Guildford, Surrey, GU2 7YP, >> England. >> >> >> >> _______________________________________________ >> epf-dev mailing list >> [email protected] >> https://dev.eclipse.org/mailman/listinfo/epf-dev >> >> > Please consider the environment before printing this email. > > This message should be regarded as confidential. If you have received this > email in error please notify the sender and destroy it immediately. > Statements of intent shall only become binding when confirmed in hard copy by > an authorised signatory. The contents of this email may relate to dealings > with other companies within the Detica Limited group of companies. > > Detica Limited is registered in England under No: 1337451. > > Registered offices: Surrey Research Park, Guildford, Surrey, GU2 7YP, England. > > > > _______________________________________________ > epf-dev mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/epf-dev > >
_______________________________________________ epf-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/epf-dev
