This commit is contained in:
Adrian Hopek 2022-03-15 11:41:27 +01:00
parent cdb8a50dfb
commit eb3c939dd5
9 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,3 @@
web: vendor/bin/heroku-php-nginx -C nginx.conf public/
web: vendor/bin/heroku-php-nginx -C environment/prod/nginx.conf public/
release: php artisan migrate --force && php artisan cache:clear && php artisan config:cache
worker: php artisan queue:work

View File

@ -50,7 +50,7 @@ class DashboardController extends Controller
$holidays = Holiday::query()
->whereDate("date", ">=", $now)
->latest()
->orderBy("date")
->limit(3)
->get();

View File

@ -6,7 +6,7 @@ services:
container_name: toby-web
working_dir: /application
volumes:
- ./docker/dev/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ./environment/dev/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- .:/application
networks:
- toby-dev
@ -19,7 +19,7 @@ services:
php:
build:
context: docker/dev/php
context: environment/dev/php
args:
INSTALL_XDEBUG: ${DOCKER_INSTALL_XDEBUG:-false}
container_name: toby-php
@ -27,7 +27,7 @@ services:
user: ${CURRENT_UID:-1000}
volumes:
- .:/application
- ./docker/dev/php/php.ini:/usr/local/etc/php/conf.d/php.ini
- ./environment/dev/php/php.ini:/usr/local/etc/php/conf.d/php.ini
networks:
- toby-dev
extra_hosts:

View File

@ -60,7 +60,7 @@ Directory structure little differs from a standard Laravel tree. We decided to r
- **web** - nginx HTTP server
- **php** - php and composer stuff
- **node** - npm stuff
- **mysql** - database for local development
- **pgsql** - database for local development
- **mailhog** - for emails preview
### Running tests

View File

@ -65,6 +65,12 @@ Route::middleware("auth")->group(function (): void {
->name("year-periods.select");
});
Route::get("/dupa", function () {
\Toby\Infrastructure\Jobs\CheckYearPeriod::dispatchSync();
});
Route::middleware("guest")->group(function (): void {
Route::get("login", fn() => inertia("Login"))
->name("login");