Forum: Ruby on Rails testing file uploads and Ferret type of things

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
03cb7371db223067d0daab54e1f95cb2?d=identicon&s=25 Abdur-Rahman Advany (Guest)
on 2005-12-12 00:45
(Received via mailing list)
Hi,

As rails grows more to a enterprise framework each and every day. And I
like it very much for 99% of my web app's. But I think there is missing
something so please help me.

I have file upload's to the rails applications and trying to get ferret
running. However both of these are data file's that can be inconsistent
across development, testing and production envourement (dev/test could
be one). I have ferret file located in db directory and my file's in
data/{model_name}/{id}/{file_id}{version}{extention}.

Now when I upload rails, most of the developers just upload everything
(including the db/data directory). However both of them contain some
kind of data that shouldn't be replaced when dealing with a already live
application. Couldn't we make some official (for 1.1 rails) confention
of using the data directory for files (in production/development) and
test/data for testing data?

So you could upload everythink expect data when updating live
application, this could be standarized by the many tools that are being
developed for rad of rails.  (like radrails :) )....

maybe there is already been a discussion on this.. don't know : )
couldn't find anything...

Abdur-Rahman
6993d6b4b6d882f421e1b45ac147f3e0?d=identicon&s=25 Scott Barron (Guest)
on 2005-12-12 01:48
(Received via mailing list)
On Dec 11, 2005, at 6:43 PM, Abdur-Rahman Advany wrote:

> and my file's in data/{model_name}/{id}/{file_id}{version}{extention}.
> being developed for rad of rails.  (like radrails :) )....
>
> maybe there is already been a discussion on this.. don't know : )
> couldn't find anything...
>
> Abdur-Rahman

I use Switchtower for this type of thing.  I stick things in the shared
directory it creates and write the recipe such that it symlinks the
stuff into the current/ tree.  As an example, I have an application
that uses TinyMCE, but I didn't want it in my repository because it
makes darcs slow (it has a ton of files, and I don't really care about
them).  So I've got a recipe:

task :tinymce do
   run "ln -s #{shared_path}/tiny_mce
#{current_path}/code/trunk/public/javascripts/tiny_mce"
end

This can now be called on its own or by the deploy recipe, or whatever
you need.

--
Scott Barron
Lunchbox Software
http://lunchboxsoftware.com
http://lunchroom.lunchboxsoftware.com
http://rubyi.st
03cb7371db223067d0daab54e1f95cb2?d=identicon&s=25 Abdur-Rahman Advany (Guest)
on 2005-12-12 02:42
(Received via mailing list)
Hi, thnx,

But this doesn't solve the issue of rails standarising a shared data
folder. So future plugins/components can build upon that. Making a
directory outside of the 'webapp' makes the application more difficult
to maintain/deploy.

Abdur-Rahman
03cb7371db223067d0daab54e1f95cb2?d=identicon&s=25 Abdur-Rahman Advany (Guest)
on 2005-12-12 17:12
(Received via mailing list)
Hi,

As rails grows more to a enterprise framework each and every day. And I
like it very much for 99% of my web app's. But I think there is missing
something so please help me.

I have file upload's to the rails applications and trying to get ferret
running. However both of these are data file's that can be inconsistent
across development, testing and production envourement (dev/test could
be one). I have ferret file located in db directory and my file's in
data/{model_name}/{id}/{file_id}{version}{extention}.

Now when I upload rails, most of the developers just upload everything
(including the db/data directory). However both of them contain some
kind of data that shouldn't be replaced when dealing with a already live
application. Couldn't we make some official (for 1.1 rails) confention
of using the data directory for files (in production/development) and
test/data for testing data?

So you could upload everythink expect data when updating live
application, this could be standarized by the many tools that are being
developed for rad of rails.  (like radrails :) )....

maybe there is already been a discussion on this.. don't know : )
couldn't find anything...

Abdur-Rahman
03cb7371db223067d0daab54e1f95cb2?d=identicon&s=25 Abdur-Rahman Advany (Guest)
on 2005-12-13 02:44
(Received via mailing list)
Hi,

As rails grows more to a enterprise framework each and every day. And I
like it very much for 99% of my web app's. But I think there is missing
something so please help me.

I have file upload's to the rails applications and trying to get ferret
running. However both of these are data file's that can be inconsistent
across development, testing and production envourement (dev/test could
be one). I have ferret file located in db directory and my file's in
data/{model_name}/{id}/{file_id}{version}{extention}.

Now when I upload rails, most of the developers just upload everything
(including the db/data directory). However both of them contain some
kind of data that shouldn't be replaced when dealing with a already live
application. Couldn't we make some official (for 1.1 rails) confention
of using the data with the following nesting:

- data
-- production
-- test
-- development

So you could upload everythink expect data when updating live
application, this could be standarized by the many tools that are being
developed for rad of rails.  (like radrails :) )....

maybe there is already been a discussion on this.. don't know : )
couldn't find anything...

Abdur-Rahman
This topic is locked and can not be replied to.