Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Tasks question
  • Hello, I am a experimenting with tasks a little bit and I have one question. If I have multiple Fuel applications running on same server and 2 application have same task with name "Mytask" and when I run command 'php oil r mytask' how does oil know which task it need to run? Is it Mytask in application 1 or Mytask in application 2? thanks
  • The oil script should be in the application root folder (the one that contains fuel/app and public), it is not part of the core. Even if you have multiple apps on the same server (I do too, and they all run on the same core folders) you should have this directory structure.
  • My server structure is like this:
    /applications (fuel apps)
        /app1
        /app2
    /fuel (fuel core and packages)
       /core
       /packages
    /www (public stuff)
       /app1_public
       /app2_public
    

    I am now placing oil for every app in /applications/appX folder and configuring the include paths so that it fits my structure. I guess this is ok?
  • That is fine, in this setup it's the only app specific folder you have available.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion