0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

FuelPHPのタスクをcrontabで実行する

Last updated at Posted at 2017-03-16

#環境、プロジェクトを指定して実行する方法
##myapp1(production), myapp2(development)が同じサーバにあり、myapp1を選んで実行するサンプル

* * * * * FUEL_ENV=production php /path/to/myapp1/oil refine taskname

FUEL_ENV=production
は無くても大丈夫だと思う。このサンプルでは、myapp1のbootstrap.php内で環境判定をしているんだけど、タスク実行ではdevelopmentに判定されるようになっているため、強制的に指定している。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?