# Deploying flex + rails apps using capistrano

**URL:** <https://www.ruby-forum.com/t/deploying-flex-rails-apps-using-capistrano/127000>\
**Category:** Rails\
**Created:** [January 24, 2008, 1:29am UTC](https://www.ruby-forum.com/t/deploying-flex-rails-apps-using-capistrano/127000 "2008-01-24T01:29:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flexrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/57b2e6/32.png) [@flexrails](https://www.ruby-forum.com/u/flexrails)\
**Post date:** [January 24, 2008, 1:29am UTC](https://www.ruby-forum.com/t/deploying-flex-rails-apps-using-capistrano/127000/1 "2008-01-24T01:29:54Z")

</div>

hi there,

i am developing a rails app with a flex frontend using eclipse,  
subversion and capistrano.

does anybody have a similar setup?

i am looking for good practices on how to configure my environment so  
that a can deploy the rails + the flex app with one capistrano  
command.

i was thinking about configuring the flex build path output folder of  
my flex project to be the public folder of my rails project, so that  
my flex binaries are bundled with the rails app in subversion and can  
be deployed with one capistrano command checking out from one svn  
repository.

thanks for your ideas and experience  
flexrails

---

<div class="post-metadata">

**Author:** ![flexrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/57b2e6/32.png) [@flexrails](https://www.ruby-forum.com/u/flexrails)\
**Post date:** [January 24, 2008, 4:34pm UTC](https://www.ruby-forum.com/t/deploying-flex-rails-apps-using-capistrano/127000/2 "2008-01-24T16:34:18Z")

</div>

On Jan 23, 7:29 pm, flexrails [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> i am looking for good practices on how to configure my environment so  
> that a can deploy the rails + the flex app with one capistrano  
> command.

I worked with some people who were deploying a rails/fex app with  
capistrano, I believe they set the build path to a subdirectory of  
public, but set subversion to ignore it. Trying to keep it in  
subversion caused problems because flex liked to destroy the .svn  
directories (at the time). So during development they tested things at  
localhost/subdirectory

They then set up an :after\_update\_code task in deploy.rb to run the  
build using the terminal command, then rsync it to the proper location  
on the server.

Just going from memory, sorry I can’t give more details than that.

–  
Justin B.  
[http://mega.blaix.com](http://mega.blaix.com)
