Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Commit

Permalink
finished config for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
andrrsin committed May 1, 2023
1 parent 33fa4bc commit cb32016
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lomap_en2b.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
API_URI: http://${{ secrets.DEPLOY_HOST }}:5000/api
API_URI: http://${{ secrets.DEPLOY_HOST }}:8800/
with:
name: arquisoft/lomap_en2b/webapp
username: ${{ github.actor }}
Expand Down
2 changes: 1 addition & 1 deletion restapi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ mongoose.connect(process.env.MONGO_URL).then(
console.log('Succesfully connected to MongoDB')
);

app.use(cors({origin:"http://localhost:"+process.env.WEBAPP_PORT}))
app.use(cors({origin:"http://localhost:3000"}))


app.use(cookieParser());
Expand Down
2 changes: 1 addition & 1 deletion webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /app
#Install the dependencies
RUN npm install

ARG API_URI="http://localhost:5000/api"
ARG API_URI="http://localhost:8800/"
ENV REACT_APP_API_URI=$API_URI

#Create an optimized version of the webapp
Expand Down

0 comments on commit cb32016

Please sign in to comment.