Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

prod release #7

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
standards
  • Loading branch information
urwithat committed Mar 4, 2021
commit 63ceef6f60304fa7096e7a73476adc436557ef57
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ jobs:
environment:
DEPLOY_ENV: "DEV"
LOGICAL_ENV: "dev"
APPNAME: "micro-frontends-react-app"
APPNAME: "micro-frontends-community-admin-app"
steps: *builddeploy_steps

"build-prod":
<<: *defaults
environment:
DEPLOY_ENV: "PROD"
LOGICAL_ENV: "prod"
APPNAME: "micro-frontends-react-app"
APPNAME: "micro-frontends-community-admin-app"
steps: *builddeploy_steps

workflows:
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
FROM node:latest

# Copy the current directory into the Docker image
COPY . /micro-frontends-react-app
COPY . /micro-frontends-community-admin-app

# Set working directory for future use
WORKDIR /micro-frontends-react-app
WORKDIR /micro-frontends-community-admin-app

# Install the dependencies from package.json
RUN npm install
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
micro-frontends-react-app:
image: micro-frontends-react-app:latest
micro-frontends-community-admin-app:
image: micro-frontends-community-admin-app:latest
build:
context: ../
dockerfile: docker/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const express = require("express");

const app = express();

app.use('/react',
app.use('/community-admin-app',
express.static("./dist", {
setHeaders: function setHeaders(res) {
res.header("Access-Control-Allow-Origin", "*");
Expand Down