correction start dev

This commit is contained in:
Cyril Rouillon 2024-10-16 16:50:43 +02:00
parent 2718e44478
commit 3ac3e9ac8e
4 changed files with 29 additions and 22 deletions

View File

@ -18,4 +18,10 @@ http://localhost:3020/api/sale/followSale/https%3A%2F%2Fwww.interencheres.com%2F
# API intern (agent)
http://localhost:3000/internApi/follow/https%3A%2F%2Fwww.interencheres.com%2Fmateriels-professionnels%2Fvente-de-mobilier-et-materiel-de-bureau-627660
http://localhost:3000/internApi/follow/https%3A%2F%2Fwww.interencheres.com%2Fmateriels-professionnels%2Fvente-de-mobilier-et-materiel-de-bureau-627660
# Prod
git clone https://gitlab.cyro-technology.com/cyril/Agent
Créer le .Key.js
cd Jucundus
docker Compose up -d

View File

@ -13,25 +13,25 @@ services:
networks:
- internal
scrapper:
build:
context: ./scrapper
dockerfile: Dockerfile
ports:
- 3020
volumes:
- ./scrapper:/scrapper
- ./.Key.js:/scrapper/.Key.js
- ./config.js:/scrapper/config.js
- ./AuctionServices:/scrapper/AuctionServices
networks:
- internal
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend.rule=Host(`jucundus-agent1.saucisse.ninja`)"
- "traefik.http.routers.backend.entrypoints=websecure"
- "traefik.http.routers.backend.tls=true"
- "traefik.http.routers.backend.tls.certresolver=myresolver"
# scrapper:
# build:
# context: ./scrapper
# dockerfile: Dockerfile
# ports:
# - 3020
# volumes:
# - ./scrapper:/scrapper
# - ./.Key.js:/scrapper/.Key.js
# - ./config.js:/scrapper/config.js
# - ./AuctionServices:/scrapper/AuctionServices
# networks:
# - internal
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.backend.rule=Host(`jucundus-agent1.saucisse.ninja`)"
# - "traefik.http.routers.backend.entrypoints=websecure"
# - "traefik.http.routers.backend.tls=true"
# - "traefik.http.routers.backend.tls.certresolver=myresolver"
networks:
internal:

View File

@ -35,7 +35,7 @@ RUN npm install
# Starting our application
#CMD [ "npm", "run", "debug-cluster" ]
CMD [ "npm", "run", "start" ]
CMD [ "npm", "run", "dev" ]
# Exposing server port
EXPOSE 80

View File

@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon server.js",
"start": "node server.js",
"dev": "nodemon server.js",
"debug-cluster": "DEBUG='puppeteer-cluster:*' node server.js"
},
"author": "",