Forum: Rails Engines development Rake tasks to copy files?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Subimage (Guest)
on 2006-02-22 09:21
How/when are the files in my engine's public folder copied over into

Is there a rake task or something I can call to transfer it over? I
looked but I'm feeling that I might be missing something...

Thanks again.

- s
Nshbrown N. (Guest)
on 2006-02-22 11:19
(Received via mailing list)
They are copied over each time fastcgi, or whatever core serving
process, is
spawned. This is done automatically.

If you view in your log files, you will see that after a fresh restart,
log files will have make record of all files copied over.

I haven't yet come across where this is done specifically in the code,
as long as you have the Engines.start :my_engine, your files will be
over, and the app/model, app/controllers, etc will be added to the load


 Nathaniel S. H. Brown                 
James A. (Guest)
on 2006-02-23 03:47
(Received via mailing list)
The files are called whenever the engine is 'started', i.e. whenever
your environment.rb file is loaded. If any of the files have not
changed, they will be skipped.

It shouldn't be too hard to write a rake task which calls the
appropriate methods from the Engines plugin, but would there be a
point (since loading th engines plugin requires the Rails environment,
which in turn means that environment.rb gets loaded and the files are
sync'd anyway ;-))


On 2/22/06, Nathaniel S. H. Brown <removed_email_address@domain.invalid> wrote:
> > Behalf Of Subimage
> > Thanks again.
> >
> _______________________________________________
> engine-developers mailing list
> removed_email_address@domain.invalid

* J *
This topic is locked and can not be replied to.