Dear Commuinty,
i followed
http://doc.silverstripe.org/framework/en/topics/commandline
http://www.balbus.tk/creating-tasks/
but still not working in Bash :(
Every file child of /data/www/silverstripe ..so on
_ss_environment.php
global $_FILE_TO_URL_MAPPING;
$_FILE_TO_URL_MAPPING['/data/www/silverstripe'] = 'http://silverstripe.dev';
/data/www/silverstripe/mysite/code/HiTask.php
class HiTask extends BuildTask {
protected $title = 'Say Hi';
protected $description = 'A class that says <strong>Hi</strong>';
protected $enabled = true;
function run($request) {
echo "I'm trying to say hi...";
}
}
Shown and Runnable over http://silverstripe.dev/dev/tasks
But when i wil run
/data/www/silverstripe/sake dev/tasks/HiTask
The build task "HiTask" could not be found
same with
/data/www/silverstripe/sake dev/tasks/BuildTask
The build task "BuildTask" could not be found