Skip to content

Commit

Permalink
Remove articles url
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Sep 15, 2023
1 parent 439e0ab commit a9849ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
cd nginx
sed -i "s|WEBSITE_URL|dev-stack.canopas.com|g" conf.d/default.conf
sed -i "s|API_URL|dev-stack-api.canopas.com|g" conf.d/default.conf
sed -i "s|ARTICLES_URL|65.2.75.248:3000|g" conf.d/default.conf
bash ./../deploy/deploy-ecr-image.sh dev-nginx ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.$AWS_REGION.amazonaws.com/canopas-website-nginx
- name: Build frontend and push on ECR
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches:
- "master"

jobs:
deploy-prod:
runs-on: ubuntu-latest
Expand All @@ -29,7 +29,6 @@ jobs:
cd nginx
sed -i "s|WEBSITE_URL|canopas.com|g" conf.d/default.conf
sed -i "s|API_URL|prod-stack-api.canopas.com|g" conf.d/default.conf
sed -i "s|ARTICLES_URL|articles.canopas.com|g" conf.d/default.conf
bash ./../deploy/deploy-ecr-image.sh prod-nginx ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.$AWS_REGION.amazonaws.com/canopas-website-nginx
- name: Build frontend and push on ECR
Expand All @@ -39,7 +38,7 @@ jobs:
mv src/config.prod.js src/config.js
sh ./../deploy/generate-sitemap.sh https://canopas.com https://prod-stack-api.canopas.com
bash ./../deploy/deploy-ecr-image.sh prod-frontend ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.$AWS_REGION.amazonaws.com/canopas-website-frontend
- name: Checkout
uses: actions/[email protected]

Expand Down Expand Up @@ -84,4 +83,4 @@ jobs:
ClusterName=canopas-website-prod,
ImageTag=${{ github.sha }}-${{ github.run_attempt }}-prod-frontend,
BackendImageTag=${{ github.sha }}-${{ github.run_attempt }}-prod-backend,
NginxImageTag=${{ github.sha }}-${{ github.run_attempt }}-prod-nginx
NginxImageTag=${{ github.sha }}-${{ github.run_attempt }}-prod-nginx
2 changes: 1 addition & 1 deletion nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ server {
}

location /resources {
proxy_pass http://ARTICLES_URL/resources;
proxy_pass http://canopas-blog:3000/resources;
proxy_set_header Host $host;
}
}
Expand Down

0 comments on commit a9849ef

Please sign in to comment.