ReviewOS

also looking at this

ci-on/laravel-nuxt-tailwind-boilerplate

Add Laravel Vapor Support

#8
Open chris wants to merge feat/vapor-support into master
2 files +42 -0
.github/workflows/laravel.ymladded+17-0
Changes to .github/workflows/laravel.yml
@@ -0,0 +1,17 @@
1name: Deploy to [branch-name]
2
3on:
4 push:
5 branches: [ master ]
6
7jobs:
8 vapor:
9 name: Check out, build and deploy using Vapor
10 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/checkout@v1
13 - uses: ubient/laravel-vapor-action@master
14 env:
15 VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }}
16 with:
17 args: "deploy [branch-name]" #
vapor.ymladded+25-0
Changes to vapor.yml
@@ -0,0 +1,25 @@
1id: 11824
2name: your-name
3environments:
4 production:
5 memory: 1024
6 cli-memory: 512
7 runtime: php-7.4
8 build:
9 - 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev'
10 - 'php artisan event:cache'
11# - 'npm ci && npm run prod && rm -rf node_modules'
12 staging:
13 database: your-db-name
14 database-user: your-db-user
15 memory: 1024
16 cli-memory: 512
17 runtime: php-7.4
18 build:
19 - 'COMPOSER_MIRROR_PATH_REPOS=1 composer install'
20 - 'php artisan event:cache'
21 deploy:
22 - 'php artisan migrate --force'
23 - 'php artisan db:seed'
24 domain: staging.your-domain.com
25