Matt Wynne wrote:

On 1 Sep 2009, at 19:44, Rick DeNatale wrote:

On Tue, Sep 1, 2009 at 1:51 PM, Carl Graff<[email protected]> wrote:


Of less importance:

Actually I have considered creating/converting these integration
applications as full blown Rails applications since they definitely have a
model and controller aspect and the Rails framework provides so many
built-in features and extensions. But I can’t find a way to run a Rails app
without the use of a server which I really don’t need.

What's your development platform?  There's really nothing special
about a server.  I run personal rails apps on my laptop, in my case
under OS X, using passenger and apache, but I've done similar things
on a linux development machine before.

On OS X, the passenger preference pane makes this dead easy, and
passenger runs the rails app on demand, and shuts it down when it's
been idle.

I think the OP means he doesn't know how to run his code in the rails app without firing up a web server.

Carl, You need to take a look at script/runner which will show you how to do it. I personally would build my own app from a blank slate as I'd prefer it to be less cluttered, but if you're used to running in the rails environment, then go for it.


--
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

My company only uses Windows so deployment is probably Apache/Mongrel or Glassfish with JRuby.

Creating my own app by just including ActiveRecord is what I have done in the past, but while reading the RSpec book I noticed all the nice support using rpec-rails and wondered if I could use that and if so the rpec-rails functionality "seems" somewhat dependent on Rails convention and directory structure.

I think I will abandon the idea of running a rails app outside of a app server - while it probably can be done I would be out on an island. I'm still debating whether to make this a Rails app with a server for reasons stated above or just a ruby app with activerecord and hopefully the use of some of the features offered by rpec-rails.

I guess this all seems rather confusing but such is the world of integration.








_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to