This commit is contained in:
25
.gitea/workflows/depoy.yml
Normal file
25
.gitea/workflows/depoy.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
name: Deploy App
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Deploy to LXC
|
||||||
|
uses: appleboy/ssh-action@v0.1.9
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.PROD_HOST }}
|
||||||
|
username: ${{ secrets.PROD_USER }}
|
||||||
|
key: ${{ secrets.PROD_SSH_KEY }}
|
||||||
|
port: 22
|
||||||
|
script: |
|
||||||
|
cd /var/www/riksdagen-app
|
||||||
|
git pull origin master
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
|
||||||
|
php artisan optimize
|
||||||
@@ -11,7 +11,9 @@ return Application::configure(basePath: dirname(__DIR__))
|
|||||||
health: '/up',
|
health: '/up',
|
||||||
)
|
)
|
||||||
->withMiddleware(function (Middleware $middleware): void {
|
->withMiddleware(function (Middleware $middleware): void {
|
||||||
//
|
$middleware->trustProxies(
|
||||||
|
'192.168.0.99',
|
||||||
|
);
|
||||||
})
|
})
|
||||||
->withExceptions(function (Exceptions $exceptions): void {
|
->withExceptions(function (Exceptions $exceptions): void {
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user