Hỏi về processimage
-
Xin chào ae nodejs
Mình mới tìm hiểu nodejs và cài cái node server mục đích là cắt ảnh cho project
Hiện tại mình cài GraphicsMagick http://aheckmann.github.io/gm/
và dùng express-processimage https://github.com/papandreou/express-processimage
để truyền param trên đường link
app.com/Upload/hanoi.jpg?resize=100,100 (đã chạy thành công)
nhưng khi gõ bậy bạ tham số ví dụ : app.com/Upload/hanoi.jpg?pngcrush=-rem,alla
thì
mặc dù đã cái nodemon để tự restart server nhưng với lỗi như thế này server ko restart được
mong anh em chỉ giáo, chứ người dùng lấy link ra rùi gõ lung tung là server node mình chết => toàn bộ hình ảnh của site mất hết
Cám ơn mọi người nhiều
-
Bạn dùng forever hoặc pm2 xem.
nodemon will watch the files in the directory in which nodemon was started, and if any files change, nodemon will automatically restart your node application.
-
@Đô-Nguyễn đã dc vs pm2 tks pro rất nhiều