我正在使用CakePHP控制檯從我們下載文件並在數據庫中進行處理。我從「app」目錄中運行控制檯。但是,當我試圖在應用程序之外運行控制檯並通過爲我的cron作業設置「-app」參數時,它不起作用。CakePHP控制檯通過Cron問題
說實話,我用-app參數沒有成功。這就像它根本不工作。
順便說一下,我正在使用Windows & Pycron作爲我的cron作業。
這裏的時候,我試圖從d運行控制檯會發生什麼:\
D:\>web\elink\cake\console\cake -app D:\web\elink\app
Welcome to CakePHP v1.2.2.8120 Console
---------------------------------------------------------------
Current Paths:
-app: app
-working: D: -app D:/web/elink/app
-root: D: -app D:/web/elink
-core: D:\web\elink
Changing Paths:
your working path should be the same as your application path
to change your path use the '-app' param.
Example: -app relative/path/to/myapp or -app /absolute/path/to/myapp
Available Shells:
D:\web\elink\vendors\shells:
- none
CORE\console\libs:
acl
api
bake
console
i18n
schema
testsuite
To run a command, type 'cake shell_name [args]'
To get help on a specific command, type 'cake shell_name help'
我彈位於d:\網絡\ ELINK \程序\供應商\炮彈。
我似乎無法得到-app參數在Ubuntu上工作。我將通過hector嘗試下面列出的解決方法。 – the0ther 2010-07-16 20:40:22