Skip to content

Commit

Permalink
Merge pull request #26 from giansalex/feature/migrate-drift-server-0.…
Browse files Browse the repository at this point in the history
…1.12

Migrate async server
  • Loading branch information
giansalex authored Feb 20, 2021
2 parents d0a23a7 + f7d5570 commit 3cf1174
Show file tree
Hide file tree
Showing 10 changed files with 144 additions and 1,045 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
* text=auto

*.sh text eol=lf
*.bat text eol=crlf
*.png binary
*.jpg binary

/.github export-ignore
/docker export-ignore
/docs export-ignore
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on: [push, pull_request]
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ COPY . .
RUN git apply docker/drift-kernel.patch
RUN git apply docker/drift-adapter.patch
RUN composer install --no-interaction --no-dev --optimize-autoloader --ignore-platform-reqs && \
composer require drift/server:0.1.16 --ignore-platform-reqs && \
composer require drift/server:0.1.22 --ignore-platform-reqs && \
composer require react/filesystem:^0.1.2 --ignore-platform-reqs && \
composer dump-autoload --optimize --no-dev --classmap-authoritative && \
composer dump-env prod --empty && \
find -name "[Tt]est*" -type d -exec rm -rf {} + && \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ API para consultar el DNI y RUC - Perú, empleando [peru-consult](https://github

## Requerimientos

- PHP 7.3 o superior.
- PHP 7.4 o superior.

## Instalar

Expand Down
10 changes: 8 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
"repository": "https://github.com/giansalex/peru-consult-api",
"env": {
"APP_LOG": "php://stderr",
"API_TOKEN": "abcxyz"
"APP_ENV": "prod",
"API_TOKEN": {
"description": "Un token para acceder al API.",
"generator": "secret"
}
},
"image": "heroku/php"
"scripts": {
"postdeploy": "php bin/console cache:clear"
}
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"type": "project",
"license": "MIT",
"require": {
"php": ">=7.3",
"php": ">=7.4",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-json": "*",
"drift/http-kernel": "^0.1.10",
"drift/http-kernel": "^0.1.16",
"giansalex/peru-consult": "^4.2",
"symfony/console": "5.2.*",
"symfony/dotenv": "5.2.*",
Expand Down
Loading

0 comments on commit 3cf1174

Please sign in to comment.