Thử nghiệm việc cấu trúc lại các websites & services xem thử thế nào XCrawler Pet project chính của mình. Hầu hết các services sẽ phục vụ cho em nó. Đầu tiên là hệ thống monitoring & alert Grafana Đảm nhiệm nhiệm vụ monitoring server.PrometheusAlertManager Sử dụng Github cho repository của XCrawler Issues Management Và... Continue Reading →
[Series] XCrawler – Truyền kì truyện – VirtualBox
Để chơi project XCrawler này mình cũng đã chơi lớn. 1 con Workstation Dual Xeon E5 2680v4 - 256GB RAM & Load Balancer với 2 line Internet ( 1 tĩnh & 1 động ). Tất nhiên có nhiều cách để setup với server này. Tuy nhiên cách mình chọn là Workstation sẽ install các Primary... Continue Reading →
[Series] XCrawler – Truyền kì truyện – Ubuntu
Well ! Series này thật chất không focus nặng vào XCrawler. Bản chất series sẽ xoay quanh các vấn đề liên quan và ... mở rộng. Version mình dùng hiện tại là Ubuntu 20.04 Ubuntu Bản chất Ubuntu cũng chỉ là OS based trên Linux thôi. Không có gì đặc biệt hết. Được cái phổ... Continue Reading →
Laravel – Ajax “without” jQuery.ajax for each one
Project XGallery có rất nhiều thứ cần ajax. Tất nhiên chuyển sang Vue thì sẽ ngon hơn nhiều. Nhưng còn hạn chế kiến thức, thôi thì xài Ajax tạm.
Deploy update for Laravel project
Well. Bài này mình sẽ guide 1 chút về việc deploy bản update cho Laravel project. Giả sử bạn có 1 vài fixes, updates và cần deploy lên. So ... To enable maintenance mode, execute the down Artisan command php artisan down git pull php artisan optimize:clear Nếu có jobs failed và cần retry lại... Continue Reading →
Quick command to reset your data with Laravel route
Với project XGallery thường xuyên phải reset data sau khi test một cái gì đó. Mà nhiều thứ phải làm quá ... nên build nhanh 1 con clear:all Artisan::command('clear:all', function () { array_map('unlink', array_filter((array) glob(storage_path('logs/*.log')))); $this->comment('Logs have been cleared!'); array_map('unlink', array_filter((array) glob(storage_path('app/*.tmp')))); $this->comment('Tmp files have been cleared!'); $tableNames = Schema::getConnection()->getDoctrineSchemaManager()->listTableNames(); Schema::disableForeignKeyConstraints(); foreach ($tableNames as $name)... Continue Reading →
Laravel – Sử dụng logging với channels
Cách sử dụng logging với stacks - channels & driver trên Laravel.
OneJAV – Bài toán crawl hết data site
Hiện tại site này có khoảng 5210 pages . Target là làm sao XGallery khi install trên 1 server mới thì có thể crawl hết data này ???
How to use laravel queues
Bài viết này vừa viết để share và cũng là để mình nắm rõ, chi tiết hơn về món này.
XGallery – Laravel version
http://xcrawler.net/blogs/xgallery-on-laravel/ Lần refactor này ngoài mục đích để tụng kinh Laravel cho công việc, nhân tiện đó cũng sẽ improve nhiều thứ Configuration cho từng CrawlerOAuth với Laravel tốt hơnImprove Web interface với các notificationsImprove với dispatcher / eventImprove với CollectionGiảm thiểu duplicate codeImprove UnitTest: Bao gồm Feature Test & UnitTest Và nhiều thứ hay... Continue Reading →
You must be logged in to post a comment.