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
on 2006-02-22 08:21
on 2006-02-22 10:19
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
on 2006-02-23 02:47
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 <nshb@inimit.com> wrote: > > > Behalf Of Subimage > > Thanks again. > > > > _______________________________________________ > engine-developers mailing list > engine-developers@lists.rails-engines.org > http://lists.rails-engines.org/listinfo.cgi/engine... > -- * J * ~
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.