Tick Tick Boom

시간이 다 가기 전에

맷돌

TIL 1주차 2023년 8월 7일 ~ 2023년 8월 9일

bbingle 2023. 8. 9. 17:41

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 개발자 인터뷰 영상

https://www.youtube.com/watch?v=mSocYcbdnnQ&embeds_referring_euri=https%3A%2F%2Fwww.reddit.com%2F&feature=emb_title 

 

수요일

 

'맷돌' 카테고리의 다른 글

그래프  (0) 2022.10.14
트리 - Tree  (0) 2022.10.14