[Radiant] [RFC] Extensions as gems
Hi all! This is a request for comments regarding the possibility of packaging Radiant extensions as gems. I am addressing this mostly to those familiar with Radiant internals. Others are welcome to contribute, of course. Is it technically possible to load Radiant extesions as gems, in a manner similar to the way Rails loads plugins from gems? There are several reasons for wanting this: 1. Versioning. Packaging extensions as gems lets us leverage the gem versioning mechanism. This way we would be able to state that Radiant version 0.8 is compatible with a certain extension version 1.2. 2. Management. You could have several versions of the same extension installed on your system, and various projects running different versions of Radiant would just use the one specified. No git submodules or vendoring of extensions needed. This ties into versioning. I would be willing to invest the time in making this happen. Is anyone else interested in seeing this? I anyone interested in helping out? Can anyone point me in a starting direction? Thanks! -- Istvan Hoka ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] [RFC] Extensions as gems
Istvan, I am totally for this. Some hurdles we'll have to overcome: 1) Numerous places where files in extensions use a relative path to find config/environment.rb or other files in the gem. This is especially relevant to running tests. 2) Resolving inter-extension dependencies so as to avoid the merb-style dependency hell. The simple solution for this is to strongly suggest that extensions use = version dependencies rather than =. Sean Istvan Hoka wrote: Hi all! This is a request for comments regarding the possibility of packaging Radiant extensions as gems. I am addressing this mostly to those familiar with Radiant internals. Others are welcome to contribute, of course. Is it technically possible to load Radiant extesions as gems, in a manner similar to the way Rails loads plugins from gems? There are several reasons for wanting this: 1. Versioning. Packaging extensions as gems lets us leverage the gem versioning mechanism. This way we would be able to state that Radiant version 0.8 is compatible with a certain extension version 1.2. 2. Management. You could have several versions of the same extension installed on your system, and various projects running different versions of Radiant would just use the one specified. No git submodules or vendoring of extensions needed. This ties into versioning. I would be willing to invest the time in making this happen. Is anyone else interested in seeing this? I anyone interested in helping out? Can anyone point me in a starting direction? Thanks! -- Istvan Hoka ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] copy move extension install error
Hi, I just installed the copy/move extension for a site running radiant 0.8.1 The installation gives the error below. As far as I can tell thoucgh, the extension works properly. rake production radiant:extensions:copy_move:install --trace (in /Library/WebServer/stekstad/info.psychopathie/cms/radiant) ** Invoke production (first_time) ** Execute production ** Invoke environment (first_time) ** Execute environment rake aborted! Don't know how to build task 'radiant:extensions:copy_move:install' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1728:in `[]' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in `invoke_task' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/local/bin/rake:16:in `load' - Jan ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] copy move extension install error
it looks like the copy_move extension doesn't have an install task try: rake production radiant:extensions:copy_move:migrate rake production radiant:extensions:copy_move:update or just use ./script/extension install copy_move and let it take care of that for you. On Thu, Sep 10, 2009 at 9:02 AM, Jan M.J. Storms j...@storms.org wrote: Hi, I just installed the copy/move extension for a site running radiant 0.8.1 The installation gives the error below. As far as I can tell thoucgh, the extension works properly. rake production radiant:extensions:copy_move:install --trace (in /Library/WebServer/stekstad/info.psychopathie/cms/radiant) ** Invoke production (first_time) ** Execute production ** Invoke environment (first_time) ** Execute environment rake aborted! Don't know how to build task 'radiant:extensions:copy_move:install' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1728:in `[]' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in `invoke_task' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/local/bin/rake:16:in `load' - Jan ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
[Radiant] Radiant on IIS possible?
My company is putting together an RFQ for a website project for one of our clients. We only build Ruby on Rails applications, mostly with Radiant. One of the requirements for their website is that it be hosted on their Windows server with IIS. Is this possible? What options are available for hosting Rails sites on IIS? Thanks, Nate ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Radiant on IIS possible?
Is there an outstanding reason they can't run apache on windows? On Sep 10, 2009, at 9:29 AM, Nate Turnage wrote: My company is putting together an RFQ for a website project for one of our clients. We only build Ruby on Rails applications, mostly with Radiant. One of the requirements for their website is that it be hosted on their Windows server with IIS. Is this possible? What options are available for hosting Rails sites on IIS? Thanks, Nate ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant Brian Loomis http://www.virtualrelations.us (208) 639-2569 - 208 NEW BLOX -- email checked daily -- ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Radiant on IIS possible?
On Sep 10, 2009, at 9:47 AM, Brian Loomis wrote: Is there an outstanding reason they can't run apache on windows? nginx runs on Windows nowadays too. It's a little less intimidating. However, I expect they want IIS because of all the management tools, quick web search reveals you could do it via FastCGI. Unfortunately Ruby performance is known to lag on Windows. --cro ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Radiant on IIS possible?
The easy answer for this is to use the typical reverse-proxy to mongrel, thin, or some other Ruby application server. Most web-servers have an option to do that. Sean Nate Turnage wrote: My company is putting together an RFQ for a website project for one of our clients. We only build Ruby on Rails applications, mostly with Radiant. One of the requirements for their website is that it be hosted on their Windows server with IIS. Is this possible? What options are available for hosting Rails sites on IIS? Thanks, Nate ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Radiant on IIS possible?
You shouldn't have a problem doing it. One of our clients used to be on IIS and SQL Server with Radiant. You'll need to purchase isapi_rewrite from http://www.isapirewrite.com/ or http://www.helicontech.com/isapi_rewrite/ unless there is some other way out there to easily do it now. But it was well worth the money when we had it. At the time we were running versions ranging in 0.5 - 0.6 of Radiant and had IIS as a front end to Mongrel. On Thu, Sep 10, 2009 at 12:04 PM, Sean Cribbsseancri...@gmail.com wrote: The easy answer for this is to use the typical reverse-proxy to mongrel, thin, or some other Ruby application server. Most web-servers have an option to do that. Sean Nate Turnage wrote: My company is putting together an RFQ for a website project for one of our clients. We only build Ruby on Rails applications, mostly with Radiant. One of the requirements for their website is that it be hosted on their Windows server with IIS. Is this possible? What options are available for hosting Rails sites on IIS? Thanks, Nate -- Jim Gay http://www.saturnflyer.com ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Radiant on IIS possible?
We just successfully deployed a rails project with the same requirements using tomcat, IIS, and jruby on rails. George --Original Message-- From: Nate Turnage Sender: radiant-boun...@radiantcms.org To: Radiant@radiantcms.org ReplyTo: radiant@radiantcms.org Subject: [Radiant] Radiant on IIS possible? Sent: Sep 10, 2009 5:29 AM My company is putting together an RFQ for a website project for one of our clients. We only build Ruby on Rails applications, mostly with Radiant. One of the requirements for their website is that it be hosted on their Windows server with IIS. Is this possible? What options are available for hosting Rails sites on IIS? Thanks, Nate ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant Sent via BlackBerry by ATT ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Help with RAILS_ROOT and Frozen Gems
On Thu, Sep 10, 2009 at 1:09 AM, Chris Parrishchris.parrish-forumm...@swankinnovations.com wrote: I just tried installing radiant 0.8.1 and all went well until I performed a rake radiant:freeze:gems Now starting mongrel on my development machine produces the following error: ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... my_project/vendor/radiant/vendor/rails/railties/lib/initializer.rb:902:in `read': No such file or directory - my_project/vendor/radiant/config/database.yml (Errno::ENOENT) from my_project/vendor/radiant/vendor/rails/railties/lib/initializer.rb:902:in `database_configuration' from my_project/vendor/radiant/vendor/rails/railties/lib/initializer.rb:437:in `initialize_database' from my_project/vendor/radiant/vendor/rails/railties/lib/initializer.rb:141:in `process' from my_project/vendor/radiant/vendor/rails/railties/lib/initializer.rb:113:in `send' from my_project/vendor/radiant/vendor/rails/railties/lib/initializer.rb:113:in `run' from my_project/vendor/radiant/lib/radiant/initializer.rb:148:in `run' from my_project/vendor/radiant/config/environment.rb:12 from .../ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' ... 12 levels... from ...\ruby\bin\mongrel_rails:19:in `load' from ...\ruby\bin\mongrel_rails:19 from -e:2:in `load' from -e:2 If I step through the initializer.rb, it clearly thinks the RAILS_ROOT should be my_project/vendor/radiant I can make it happy by copying my database.yml to where it's looking, but then the app wants my development.sqlite3.db in the radiant directory and it creates a tmp/ directory for the cache down in vendor/radiant/ too. What am I missing? -Chris Is this on an existing application? And if so, have you run rake radiant:update? -- Jim Gay http://www.saturnflyer.com ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Radiant on IIS possible?
In a similar situation, I have done the reverse: run Apache on port 80 and proxy requests to IIS running on another port. The IIS port is protected from ouside access by firewall. Rails applications were running on Mongrel with mod_balancer and managed with the mongrel_service gem to make the apps spin up on reboot. -- Istvan Hoka On Thu, Sep 10, 2009 at 7:04 PM, Sean Cribbs seancri...@gmail.com wrote: The easy answer for this is to use the typical reverse-proxy to mongrel, thin, or some other Ruby application server. Most web-servers have an option to do that. Sean Nate Turnage wrote: My company is putting together an RFQ for a website project for one of our clients. We only build Ruby on Rails applications, mostly with Radiant. One of the requirements for their website is that it be hosted on their Windows server with IIS. Is this possible? What options are available for hosting Rails sites on IIS? Thanks, Nate ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Radiant on IIS possible?
On Thu, Sep 10, 2009 at 12:01 PM, Jim Gay j...@saturnflyer.com wrote: You shouldn't have a problem doing it. One of our clients used to be on IIS and SQL Server with Radiant. You'll need to purchase isapi_rewrite from http://www.isapirewrite.com/ or http://www.helicontech.com/isapi_rewrite/ unless there is some other way out there to easily do it now. But it was well worth the money when we had it. At the time we were running versions ranging in 0.5 - 0.6 of Radiant and had IIS as a front end to Mongrel. I did find a PDF online from back in 2006 that described that process, but didn't know if that was still the right way to do it. I know nothing about IIS so, if you don't mind, I may be picking your brain if I run into problems. Thanks, Nate ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Help with RAILS_ROOT and Frozen Gems
Actually, it looks like an IDE problem (I use RadRails). It would seem that they are incorrectly inferring the application's working directory to be the \vendor\radiant\ directory when launching mongrel. Sorry for the noise. -Chris Jim Gay wrote: On Thu, Sep 10, 2009 at 1:09 AM, Chris Parrishchris.parrish-forumm...@swankinnovations.com wrote: I just tried installing radiant 0.8.1 and all went well until I performed a rake radiant:freeze:gems Now starting mongrel on my development machine produces the following error: ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... my_project/vendor/radiant/vendor/rails/railties/lib/initializer.rb:902:in `read': No such file or directory - my_project/vendor/radiant/config/database.yml (Errno::ENOENT) from my_project/vendor/radiant/vendor/rails/railties/lib/initializer.rb:902:in `database_configuration' from my_project/vendor/radiant/vendor/rails/railties/lib/initializer.rb:437:in `initialize_database' from my_project/vendor/radiant/vendor/rails/railties/lib/initializer.rb:141:in `process' from my_project/vendor/radiant/vendor/rails/railties/lib/initializer.rb:113:in `send' from my_project/vendor/radiant/vendor/rails/railties/lib/initializer.rb:113:in `run' from my_project/vendor/radiant/lib/radiant/initializer.rb:148:in `run' from my_project/vendor/radiant/config/environment.rb:12 from .../ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' ... 12 levels... from ...\ruby\bin\mongrel_rails:19:in `load' from ...\ruby\bin\mongrel_rails:19 from -e:2:in `load' from -e:2 If I step through the initializer.rb, it clearly thinks the RAILS_ROOT should be my_project/vendor/radiant I can make it happy by copying my database.yml to where it's looking, but then the app wants my development.sqlite3.db in the radiant directory and it creates a tmp/ directory for the cache down in vendor/radiant/ too. What am I missing? -Chris Is this on an existing application? And if so, have you run rake radiant:update? ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant