Skip to main content

Posts

Showing posts from September, 2018

Note Laravel query, Angular 2 ...

https://laravel-news.com/eloquent-tips-tricks     /**      * @param Request $request      * @param integer $bankId      * @param datetime $from      * @return \Illuminate\Http\JsonResponse      */     public function getBankFilesUploadedFromMonth(Request $request, $bankId = null)     {         $fromMonth = $request->get('fromMonth', '01');         $fromYear  = $request->get('fromYear', date('Y'));         $account = $request->get('user');         try {             if (!$account->isAdmin())                 $bank = $account->bank;             else                 $bank = $this->bankRepository->find($bankId, true);   ...

Laravel Job queue Supervisord and beanstalkd

   Active: inactive (dead) ubuntu@ip-172-31-29-15:/var/www/risk_advisor_dev/risk_advisor/API$ sudo service supervisor status ● supervisor.service - Supervisor process control system for UNIX    Loaded: loaded (/lib/systemd/system/supervisor.service; enabled; vendor preset: enabled)    Active: active (running) since Wed 2018-09-05 02:44:50 UTC; 49min ago      Docs: http://supervisord.org   Process: 19220 ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown (code=exited, status=0/SUCCESS)  Main PID: 19223 (supervisord)     Tasks: 4    Memory: 111.6M       CPU: 1min 47.037s    CGroup: /system.slice/supervisor.service            ├─19223 /usr/bin/python /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf            ├─19229 php /var/www/risk_advisor_dev/risk_advisor/API/artisan queue:listen --timeout=3000   ...