在开发工具中是另一个文件而不是在服务器中

问题描述 投票:0回答:0

我有一个应用程序部署在两台服务器上。第一个应用程序位于端口 3000 上,语言为 PL,第二个应用程序位于端口 3001 上,语言为 DE。如果我 build_de 并在端口 3000 上启动,一切都很好,但在端口 3001 上,PL 和 DE 不起作用。当我打开开发工具并打开“源”选项卡时,我看到的文件与服务器上的文件不同。我使用 bitbucket 管道和 PM2 运行的服务器。可能是什么原因?

PL

image: atlassian/default-image:3

pipelines:
  branches:
    dev:
      - step:
          name: Build & Deploy artifacts using RSYNC to DEV PL
          image: node:16.14.0
          deployment: dev-pl
          artifacts:
            - .next/**
          script:
            - yarn install
            - yarn clean
            - yarn build_pl
            - pipe: atlassian/rsync-deploy:0.8.1
              variables:
                USER: $SSH_USER
                SERVER: $SSH_HOST
                REMOTE_PATH: $PROJECT_PATH_PL
                LOCAL_PATH: ".next"
                EXTRA_ARGS: "-avz"
            - pipe: atlassian/ssh-run:0.4.1
              variables:
                SSH_USER: $SSH_USER
                SERVER: $SSH_HOST
                COMMAND: "cd $PROJECT_PATH_PL && sh _deploy.sh"
                PORT: 22
      - step:
          name: Build & Deploy artifacts using RSYNC to DEV DE
          image: node:16.14.0
          deployment: dev-de
          artifacts:
            - .next/**
          script:
            - yarn install
            - yarn clean
            - yarn build_de
            - pipe: atlassian/rsync-deploy:0.8.1
              variables:
                USER: $SSH_USER
                SERVER: $SSH_HOST
                REMOTE_PATH: $PROJECT_PATH_DE
                LOCAL_PATH: ".next"
                EXTRA_ARGS: "-avz"
            - pipe: atlassian/ssh-run:0.4.1
              variables:
                SSH_USER: $SSH_USER
                SERVER: $SSH_HOST
                COMMAND: "cd $PROJECT_PATH_DE && sh _deploy.sh"
                PORT: 22
next.js pm2 bitbucket-pipelines
© www.soinside.com 2019 - 2024. All rights reserved.