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) # 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: networks:
- internal - internal
scrapper: # scrapper:
build: # build:
context: ./scrapper # context: ./scrapper
dockerfile: Dockerfile # dockerfile: Dockerfile
ports: # ports:
- 3020 # - 3020
volumes: # volumes:
- ./scrapper:/scrapper # - ./scrapper:/scrapper
- ./.Key.js:/scrapper/.Key.js # - ./.Key.js:/scrapper/.Key.js
- ./config.js:/scrapper/config.js # - ./config.js:/scrapper/config.js
- ./AuctionServices:/scrapper/AuctionServices # - ./AuctionServices:/scrapper/AuctionServices
networks: # networks:
- internal # - internal
labels: # labels:
- "traefik.enable=true" # - "traefik.enable=true"
- "traefik.http.routers.backend.rule=Host(`jucundus-agent1.saucisse.ninja`)" # - "traefik.http.routers.backend.rule=Host(`jucundus-agent1.saucisse.ninja`)"
- "traefik.http.routers.backend.entrypoints=websecure" # - "traefik.http.routers.backend.entrypoints=websecure"
- "traefik.http.routers.backend.tls=true" # - "traefik.http.routers.backend.tls=true"
- "traefik.http.routers.backend.tls.certresolver=myresolver" # - "traefik.http.routers.backend.tls.certresolver=myresolver"
networks: networks:
internal: internal:

View File

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

View File

@ -5,7 +5,8 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "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" "debug-cluster": "DEBUG='puppeteer-cluster:*' node server.js"
}, },
"author": "", "author": "",