How/when are the files in my engine’s public folder copied over into
engine_files?
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
How/when are the files in my engine’s public folder copied over into
engine_files?
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.
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,
the
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,
but
as long as you have the Engines.start :my_engine, your files will be
copied
over, and the app/model, app/controllers, etc will be added to the load
paths.
-Nb
Nathaniel S. H. Brown http://nshb.net
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 ;-))
james
On 2/22/06, Nathaniel S. H. Brown [email protected] wrote:
Behalf Of Subimage
Thanks again.
engine-developers mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org
–
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs