TIL 1주차
월요일
- laravel의 리눅스 command 실행 방법
- laravel queue 상태 테스트 코드
$command = "php artisan queue:work";
// 실행한 명령어를 저장할 변수
$output = array();
// 명령어를 실행하고 결과를 $output 배열에 저장
exec("ps -p $this->pid -o command", $output);
// $output 배열을 검사하여 해당 프로세스가 데몬으로 실행 중인지 확인
$isDaemon = false;
foreach ($output as $line) {
if (strpos($line, $command) !== false) {
$isDaemon = true;
break;
}
}
if ($isDaemon) {
$statusResult = "현재 큐가 데몬으로 실행 중입니다.";
} else {
$statusResult = "현재 큐가 데몬으로 실행중이지 않습니다.";
}
- php debugbar http://phpdebugbar.com/
- php dotenv 패키지 적용 https://github.com/vlucas/phpdotenv
화요일
- nativePHP 테스트
- nativePHP 개발자 인터뷰 영상
수요일