From 81b08c86e5f84bb9fdfbd5ee75b126066a77cb50 Mon Sep 17 00:00:00 2001 From: kassad Date: Tue, 17 Sep 2024 12:38:22 -0700 Subject: [PATCH] temp --- Dockerfile | 8 ++++---- packages/commonwealth/Procfile | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 825ef547e59..a201d48fddc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,13 +11,13 @@ COPY . /usr/src/app WORKDIR /usr/src/app RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile RUN pnpm run build -RUN pnpm deploy --filter=commonwealth --prod /packages/commonwealth -RUN mv /usr/src/app/packages/commonwealth/build /packages/commonwealth/build +RUN pnpm deploy --filter=commonwealth --prod /prod/commonwealth +RUN mv /usr/src/app/prod/commonwealth/build /prod/commonwealth/build FROM base AS commonwealth ENV NODE_ENV=production -COPY --from=build /packages/commonwealth /packages/commonwealth -WORKDIR / +COPY --from=build /prod/commonwealth /prod/commonwealth +WORKDIR /prod/commonwealth RUN apt-get update && apt-get install -y curl # Needed for heroku ENV PORT=$PORT diff --git a/packages/commonwealth/Procfile b/packages/commonwealth/Procfile index 3f00fb4192e..b52388d450c 100644 --- a/packages/commonwealth/Procfile +++ b/packages/commonwealth/Procfile @@ -1,6 +1,6 @@ -web: cd packages/commonwealth && NODE_ENV=production node --import=extensionless/register --enable-source-maps ./build/server.js -consumer: cd packages/commonwealth && node --import=extensionless/register build/server/workers/commonwealthConsumer/commonwealthConsumer.js -evm-ce: cd packages/commonwealth && node --import=extensionless/register build/server/workers/evmChainEvents/startEvmPolling.js -knock: cd packages/commonwealth && node --import=extensionless/register build/server/workers/knock/knockWorker.js -message-relayer: cd packages/commonwealth && node --import=extensionless/register build/server/workers/messageRelayer/messageRelayer.js -release: cd packages/commonwealth && node --import=extensionless/register build/server/scripts/releasePhaseEnvCheck.js && npx sequelize-cli db:migrate --config server/sequelize.json && node --import=extensionless/register build/server/scripts/purgeCloudflareCache.js +web: NODE_ENV=production node --import=extensionless/register --enable-source-maps ./build/server.js +consumer: node --import=extensionless/register build/server/workers/commonwealthConsumer/commonwealthConsumer.js +evm-ce: node --import=extensionless/register build/server/workers/evmChainEvents/startEvmPolling.js +knock: node --import=extensionless/register build/server/workers/knock/knockWorker.js +message-relayer: node --import=extensionless/register build/server/workers/messageRelayer/messageRelayer.js +release: node --import=extensionless/register build/server/scripts/releasePhaseEnvCheck.js && npx sequelize-cli db:migrate --config server/sequelize.json && node --import=extensionless/register build/server/scripts/purgeCloudflareCache.js