Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflows: ['Tests']
types: [completed]
branches:
- never-for-now-wip
- main
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -34,8 +34,12 @@ jobs:
run: |
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 932061877711.dkr.ecr.us-east-1.amazonaws.com

- name: Sync production.env configuration file
run: |
aws s3 cp s3://jobshop.works/production.env ./src/production.env

- name: Build, tag and push latest docker images
run: docker buildx bake --push
run: ENV=prod docker buildx bake --push

- name: Trigger redeployment from current deployment
run: |
Expand Down
3 changes: 3 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ target "app" {
tags = [
"932061877711.dkr.ecr.us-east-1.amazonaws.com/simpletaskmanager/app:${TAG}"
]
ARGS = {
ENV = "${ENV}"
}
}
7 changes: 5 additions & 2 deletions docker/app.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM 932061877711.dkr.ecr.us-east-1.amazonaws.com/simpletaskmanager/php AS app

ARG ENV=prod
WORKDIR /var/www/html

# Install composer bin
Expand All @@ -12,6 +13,8 @@ RUN COMPOSER_ALLOW_SUPERUSER=1 composer install
# Start building frontend assets
FROM node:20-alpine AS node

ARG ENV=prod

COPY --from=app /var/www/html /var/www/html/

WORKDIR /var/www/html
Expand Down Expand Up @@ -39,8 +42,8 @@ WORKDIR /var/www/html

RUN chown -R www-data:www-data /var/www/html \
&& chmod -R 755 /var/www/html/storage \
&& chmod -R 755 /var/www/html/bootstrap/cache

&& chmod -R 755 /var/www/html/bootstrap/cache \
&& chmod -R 755 /var/www/html/bootstrap

RUN php artisan clear-compiled \
&& composer dump-autoload
1 change: 1 addition & 0 deletions src/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"laravel/sanctum": "^4.0",
"laravel/tinker": "^2.10.1",
"laravel/wayfinder": "^0.1.6",
"livewire/livewire": "^3.6",
"maestroerror/laragent": "^0.4.1",
"owen-it/laravel-auditing": "^14.0",
"predis/predis": "^3.1",
Expand Down
78 changes: 77 additions & 1 deletion src/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

145 changes: 145 additions & 0 deletions src/config/larabug.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| Login key
|--------------------------------------------------------------------------
|
| This is your authorization key which you get from your profile.
| Retrieve your key from https://www.larabug.com
|
*/

'login_key' => env('LB_KEY', ''),

/*
|--------------------------------------------------------------------------
| Project key
|--------------------------------------------------------------------------
|
| This is your project key which you receive when creating a project
| Retrieve your key from https://www.larabug.com
|
*/

'project_key' => env('LB_PROJECT_KEY', ''),

/*
|--------------------------------------------------------------------------
| Environment setting
|--------------------------------------------------------------------------
|
| This setting determines if the exception should be send over or not.
|
*/

'environments' => [
'production',
],

/*
|--------------------------------------------------------------------------
| Project version
|--------------------------------------------------------------------------
|
| Set the project version, default: null.
| For git repository: shell_exec("git log -1 --pretty=format:'%h' --abbrev-commit")
|
*/
'project_version' => null,

/*
|--------------------------------------------------------------------------
| Lines near exception
|--------------------------------------------------------------------------
|
| How many lines to show near exception line. The more you specify the bigger
| the displayed code will be. Max value can be 50, will be defaulted to
| 12 if higher than 50 automatically.
|
*/

'lines_count' => 12,

/*
|--------------------------------------------------------------------------
| Prevent duplicates
|--------------------------------------------------------------------------
|
| Set the sleep time between duplicate exceptions. This value is in seconds, default: 60 seconds (1 minute)
|
*/

'sleep' => 60,

/*
|--------------------------------------------------------------------------
| Skip exceptions
|--------------------------------------------------------------------------
|
| List of exceptions to skip sending.
|
*/

'except' => [
'Symfony\Component\HttpKernel\Exception\NotFoundHttpException',
],

/*
|--------------------------------------------------------------------------
| Key filtering
|--------------------------------------------------------------------------
|
| Filter out these variables before sending them to LaraBug
|
*/

'blacklist' => [
'*authorization*',
'*password*',
'*token*',
'*auth*',
'*verification*',
'*credit_card*',
'cardToken', // mollie card token
'*cvv*',
'*iban*',
'*name*',
'*email*'
],

/*
|--------------------------------------------------------------------------
| Release git hash
|--------------------------------------------------------------------------
|
|
*/

// 'release' => trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')),

/*
|--------------------------------------------------------------------------
| Server setting
|--------------------------------------------------------------------------
|
| This setting allows you to change the server.
|
*/

'server' => env('LB_SERVER', 'https://www.larabug.com/api/log'),

/*
|--------------------------------------------------------------------------
| Verify SSL setting
|--------------------------------------------------------------------------
|
| Enables / disables the SSL verification when sending exceptions to LaraBug
| Never turn SSL verification off on production instances
|
*/
'verify_ssl' => env('LB_VERIFY_SSL', true),

];
2 changes: 1 addition & 1 deletion src/config/logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

'stack' => [
'driver' => 'stack',
'channels' => explode(',', env('LOG_STACK', 'single,larabug')),
'channels' => explode(',', env('LOG_STACK', 'stderr,larabug')),
'ignore_exceptions' => false,
],

Expand Down
4 changes: 2 additions & 2 deletions src/resources/js/pages/projects/board.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export default function Board({ columns, project }: { columns: Shared.Data.Board
},
{
title: project.title,
href: route('projects.show', project.id),
href: route('projects.show', project.id as string),
},
{
title: 'Board',
href: route('projects.board', project.id),
href: route('projects.board', project.id as string),
},
];

Expand Down
Loading