Skip to content

Commit f755012

Browse files
committed
OSS release
1 parent 84ba26f commit f755012

File tree

5 files changed

+42
-25
lines changed

5 files changed

+42
-25
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
vendor
2-
!build/.gitkeep
3-
build/*
1+
/vendor/
2+
!/build/.gitkeep
3+
/build/*

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: php
2+
php:
3+
- '7.1'
4+
- '7.2'
5+
- '7.3'
6+
- nightly
7+
8+
matrix:
9+
allow_failures:
10+
- php: nightly
11+
12+
before_script:
13+
- travis_retry composer self-update
14+
- travis_retry composer install --no-interaction --prefer-source --dev
15+
16+
script:
17+
- composer build
18+
19+
deploy:
20+
- provider: releases
21+
token: $GITHUB_OAUTH_TOKEN
22+
file: build/aws-excfwd
23+
skip_cleanup: true
24+
on:
25+
tags: true

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
Exception Report AWS Logger
2-
===========================
1+
Exception Report AWS Forwarder
2+
===============================
33

4-
Logs exception reports stored as individual files to AWS CloudWatch Logs.
4+
Forwards exception reports stored as individual files to AWS CloudWatch Logs.
55

6-
This something that `awslog` client cannot do.
6+
This something that AWS CloudWatch Agent cannot do.
77

88
You should run it in cron every couple of minutes.
99

10-
### Example usage for magento
10+
### Example usage for Magento
1111

1212
```
1313
bin/cli.php push:directory -v --formatter=serialized_array --region=eu-central-1 --group=magento-exc-report /var/www/magento-base/current/var/report/
@@ -20,10 +20,8 @@ composer install --dev
2020
composer build
2121
```
2222

23-
You will find the final executable in `/build/exclog`.
23+
### Install
2424

25-
Upload to our s3
25+
#### CentOS RPM Package
2626

27-
```
28-
AWS_PROFILE="creativeshop_rpms" aws s3 cp --acl public-read build/aws-exclog s3://cs-creativeshop-rpms/aws-exclog-876df02
29-
```
27+
Install the package from [MageOps RPM Repository](https://mageops.github.io/rpm/).

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "creativestyle/exception-report-aws-logger",
3-
"description": "Pushes exception report files to CloudWatch Logs",
2+
"name": "creativestyle/mageops-exception-report-cloudwatch-forwarder",
3+
"description": "Forwards exception report files to CloudWatch Logs",
44
"keywords": [
55
"aws",
66
"magento",
@@ -21,6 +21,7 @@
2121
}
2222
},
2323
"require": {
24+
"php": "^7.1",
2425
"aws/aws-sdk-php": "^3.36",
2526
"symfony/console": "^3.3"
2627
},
@@ -33,7 +34,7 @@
3334
"extra": {
3435
"phar-builder": {
3536
"compression": "GZip",
36-
"name": "aws-exclog.phar",
37+
"name": "aws-excfwd.phar",
3738
"output-dir": "build",
3839
"entry-point": "./bin/cli.php",
3940
"include": ["bin"],
@@ -43,8 +44,8 @@
4344
"command.package.start" : "git rev-parse --short HEAD > bin/version",
4445
"command.package.end": [
4546
"rm bin/version",
46-
"chmod +x build/aws-exclog.phar",
47-
"mv build/aws-exclog.phar build/aws-exclog"
47+
"chmod +x build/aws-excfwd.phar",
48+
"mv build/aws-excfwd.phar build/aws-excfwd"
4849
]
4950
}
5051
}

dev.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)