Commit 055609ba authored by Kamron Aroonrua's avatar Kamron Aroonrua 💬

Merge branch 'ondev-gcs' into 'dev'

http del patch

See merge request !49
parents 51aab56b 5eb2be0a
# Changelog # Changelog
## [1.2.6dev] - 2023-05-23 ## [1.2.6dev] - 2023-07-13
### Added ### Added
- TRIGGER :: http trigger callback - TRIGGER :: http trigger callback
- PLUGIN :: do-http-callback - PLUGIN :: do-http-callback
- PLUGIN :: dt-pgsql - PLUGIN :: dt-pgsql
### Update
- PLUGIN :: dt-http add method delete patch
- PLUGIN :: do-http add method delete patch
### Removed ### Removed
- PLUGIN :: di-gistda-air - PLUGIN :: di-gistda-air
- PLUGIN :: di-tanpibut - PLUGIN :: di-tanpibut
......
FROM node:12-alpine FROM node:14-alpine
RUN apk add make gcc g++ linux-headers udev RUN apk add make gcc g++ linux-headers udev
...@@ -9,7 +9,7 @@ WORKDIR /app/node-bigstream ...@@ -9,7 +9,7 @@ WORKDIR /app/node-bigstream
RUN npm install RUN npm install
RUN node script/install_plugins.js RUN node script/install_plugins.js
FROM node:12-alpine FROM node:14-alpine
RUN apk add --no-cache python3 RUN apk add --no-cache python3
RUN apk add --no-cache tzdata RUN apk add --no-cache tzdata
......
FROM node:12-alpine
RUN apk add make gcc g++ linux-headers udev
COPY . /app/node-bigstream
WORKDIR /app/node-bigstream
RUN npm install
RUN node script/install_plugins.js
FROM node:12-alpine
RUN apk add --no-cache python3
RUN apk add --no-cache tzdata
COPY --from=0 /app/node-bigstream /app/node-bigstream
RUN npm install -y pm2@latest -g
RUN mkdir -p /var/bigstream/data
EXPOSE 19980 19080 19180
# start server
WORKDIR /app/node-bigstream
CMD pm2-runtime pm2.config.js
\ No newline at end of file
...@@ -47,7 +47,7 @@ function send_request(prm,cb) ...@@ -47,7 +47,7 @@ function send_request(prm,cb)
{ 'cache-control': 'no-cache' } { 'cache-control': 'no-cache' }
}; };
if(prm.method.toLowerCase()=='post' || prm.method.toLowerCase()=='put') if(['post','put','delete','patch'].includes(prm.method.toLowerCase()))
{ {
options.method = prm.method.toUpperCase(); options.method = prm.method.toUpperCase();
......
...@@ -84,7 +84,7 @@ function send_request(prm,cb) ...@@ -84,7 +84,7 @@ function send_request(prm,cb)
{ 'cache-control': 'no-cache' } { 'cache-control': 'no-cache' }
}; };
if(prm.method.toLowerCase()=='post' || prm.method.toLowerCase()=='put') if(['post','put','delete','patch'].includes(prm.method.toLowerCase()))
{ {
options.method = prm.method.toUpperCase(); options.method = prm.method.toUpperCase();
......
{ {
"version":"1.2.6dev", "version":"1.2.6dev",
"build":"202305232200" "build":"202307131200"
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment