Skip to content

Commit 9bed0dc

Browse files
Develop Fix cors (#11)
* Update cors.php * Fix Cors
1 parent 91dac4d commit 9bed0dc

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
name: Release IPTV
3+
4+
on:
5+
release:
6+
types: [created]
7+
8+
jobs:
9+
releases-matrix:
10+
name: Release IPTV-CMS
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Deploy to Server
15+
uses: appleboy/ssh-action@v0.1.7
16+
with:
17+
host: ${{ secrets.SSH_HOST }}
18+
username: ${{ secrets.SSH_USER }}
19+
key: ${{ secrets.SSH_PRIVATE_KEY }}
20+
port: ${{ secrets.SSH_PORT }}
21+
script: |
22+
cd /var/www/iptv-cms.felipemateus.com
23+
git pull
24+
git fetch --all --tags --prune
25+
git checkout tags/${{ github.event.release.tag_name }} -b local${{ github.event.release.tag_name }}
26+
composer install
27+
service nginx restart
28+

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"php": "^8.0|8.1",
3737
"felipemateus/iptv-channels": "^3.0.5",
3838
"felipemateus/iptv-core": "^1.2.0",
39-
"felipemateus/iptv-customers": "^0.2.4",
39+
"felipemateus/iptv-customers": "v0.2.4",
4040
"felipemateus/laravel-iptv-gateway-paypal": "^0.0.3",
4141
"fruitcake/laravel-cors": "^2.0",
4242
"guzzlehttp/guzzle": "^7.5",

config/cors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
|
1616
*/
1717

18-
'paths' => ['api/*', 'sanctum/csrf-cookie'],
18+
'paths' => ['public/*','api/*', 'sanctum/csrf-cookie'],
1919

2020
'allowed_methods' => ['*'],
2121

0 commit comments

Comments
 (0)