Skip to content

Commit

Permalink
Fix - duplicate tags, forward logs to cloud watch
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 0c63735
Show file tree
Hide file tree
Showing 69 changed files with 6 additions and 9,949 deletions.
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:
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
7 changes: 0 additions & 7 deletions website/.env.example

This file was deleted.

6 changes: 0 additions & 6 deletions website/.eslintignore

This file was deleted.

3 changes: 0 additions & 3 deletions website/.eslintrc.json

This file was deleted.

41 changes: 0 additions & 41 deletions website/Dockerfile

This file was deleted.

288 changes: 0 additions & 288 deletions website/assets/css/global.css

This file was deleted.

Binary file removed website/assets/fonts/Comme-Light.woff2
Binary file not shown.
Binary file removed website/assets/fonts/Comme-Medium.woff2
Binary file not shown.
Binary file removed website/assets/fonts/Comme-Regular.woff2
Binary file not shown.
Binary file removed website/assets/fonts/Comme-SemiBold.woff2
Binary file not shown.
Binary file removed website/assets/fonts/Inter-Bold.woff2
Binary file not shown.
Binary file removed website/assets/fonts/Inter-ExtraLight.woff2
Binary file not shown.
Binary file removed website/assets/fonts/Inter-Medium.woff2
Binary file not shown.
Binary file removed website/assets/fonts/Inter-Regular.woff2
Binary file not shown.
Binary file removed website/assets/fonts/Inter-SemiBold.woff2
Binary file not shown.
Binary file removed website/assets/fonts/Poppins-Medium.woff2
Binary file not shown.
Binary file removed website/assets/fonts/Poppins-Regular.woff2
Binary file not shown.
Binary file removed website/assets/fonts/Source-codePro.woff2
Binary file not shown.
3 changes: 0 additions & 3 deletions website/assets/images/404page_4_1.svg

This file was deleted.

Loading

0 comments on commit 0c63735

Please sign in to comment.