Skip to content

Commit

Permalink
Fix - tags, added logs to cloudwatch, upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-dharti-r committed Apr 16, 2024
1 parent 3867956 commit f9ddfbe
Show file tree
Hide file tree
Showing 75 changed files with 1,020 additions and 10,607 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,3 @@ jobs:
yarn install
cd ../../..
yarn build
- name: Set up Node for website
uses: actions/setup-node@v1
with:
node-version: "20.x"

- name: Build frontend
env:
NEXT_PUBLIC_WEBSITE_URL: https://dev-stack.canopas.com
NEXT_PUBLIC_STRAPI_DOMAIN: ${{secrets.ADMIN_PANEL_URL}}
run: |
cd website
yarn add prettier
yarn lint
yarn build
45 changes: 0 additions & 45 deletions .github/workflows/deploy-dev.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/deploy-prod.yml

This file was deleted.

11 changes: 5 additions & 6 deletions admin/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ services:
image: ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com/blog-admin:${GITHUB_SHA}-${GITHUB_RUN_ATTEMPT}-blog-admin
deploy:
replicas: 1
volumes:
- uploads:/srv/app/public/uploads
ports:
- "1337:1337"
environment:
Expand All @@ -26,6 +24,11 @@ services:
AWS_BUCKET: ${AWS_BUCKET}
AWS_BUCKET_URL: ${AWS_BUCKET_URL}
HR_FROM_MAIL: ${HR_FROM_MAIL}
logging:
driver: awslogs
options:
awslogs-region: ${AWS_REGION}
awslogs-group: canopas-blog-admin-logs

nginx:
image: nginx:latest
Expand All @@ -42,7 +45,3 @@ networks:
outside:
external:
name: "host"

volumes:
blog-data:
uploads:
26 changes: 13 additions & 13 deletions admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@
"strapi": "strapi"
},
"dependencies": {
"@_sh/strapi-plugin-ckeditor": "^1.1.3",
"@strapi/plugin-i18n": "^4.11.5",
"@strapi/plugin-users-permissions": "^4.11.5",
"@strapi/provider-email-amazon-ses": "^4.11.5",
"@strapi/provider-upload-aws-s3": "^4.11.5",
"@strapi/strapi": "^4.14.3",
"@_sh/strapi-plugin-ckeditor": "^2.1.1",
"@strapi/plugin-i18n": "^4.23.0",
"@strapi/plugin-users-permissions": "^4.23.0",
"@strapi/provider-email-amazon-ses": "^4.23.0",
"@strapi/provider-upload-aws-s3": "^4.23.0",
"@strapi/strapi": "^4.23.0",
"@webbio/strapi-plugin-scheduler": "^1.0.6",
"html-loader": "^5.0.0",
"jsdom": "^22.1.0",
"jsdom": "^24.0.0",
"markdown-loader": "^8.0.0",
"pg": "^8.11.1",
"puppeteer": "^22.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "^5.2.0",
"pg": "^8.11.5",
"puppeteer": "^22.6.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.22.3",
"react-tagsinput": "^3.20.3",
"strapi-plugin-tagsinput": "^1.0.4",
"styled-components": "^5.2.1"
"styled-components": "^6.1.8"
},
"engines": {
"npm": ">=6.0.0"
Expand Down
3 changes: 1 addition & 2 deletions admin/public/emailTemplates/subscribe.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ <h1 style="font-size: x-large">

{{else}}
<img
src="
https://canopas-blogs.s3.ap-south-1.amazonaws.com/canopas_icon_ebedc25de3.png?updated_at=2023-05-18T10:11:39.483Z"
src="https://canopas-blogs.s3.ap-south-1.amazonaws.com/canopas_icon_ebedc25de3.png?updated_at=2023-05-18T10:11:39.483Z"
style="width: 45%; margin-bottom: 20px; margin-top: 10px"
/>
{{/if}}
Expand Down
5 changes: 1 addition & 4 deletions admin/src/api/post/content-types/post/lifecycles.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,7 @@ async function TagsInput(tags) {
where: { slug },
});

const insert = existingTag && existingTag.name != tags[i].name;
slug = insert ? slug + "-" + i : slug;

if (existingTag == null || insert) {
if (existingTag == null) {
existingTag = await strapi.db.query("api::tag.tag").create({
data: {
slug,
Expand Down
Loading

0 comments on commit f9ddfbe

Please sign in to comment.