#48 - fixes
This commit is contained in:
parent
cdb8a50dfb
commit
eb3c939dd5
2
Procfile
2
Procfile
@ -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
|
release: php artisan migrate --force && php artisan cache:clear && php artisan config:cache
|
||||||
worker: php artisan queue:work
|
worker: php artisan queue:work
|
||||||
|
@ -50,7 +50,7 @@ class DashboardController extends Controller
|
|||||||
|
|
||||||
$holidays = Holiday::query()
|
$holidays = Holiday::query()
|
||||||
->whereDate("date", ">=", $now)
|
->whereDate("date", ">=", $now)
|
||||||
->latest()
|
->orderBy("date")
|
||||||
->limit(3)
|
->limit(3)
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ services:
|
|||||||
container_name: toby-web
|
container_name: toby-web
|
||||||
working_dir: /application
|
working_dir: /application
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker/dev/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
- ./environment/dev/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||||
- .:/application
|
- .:/application
|
||||||
networks:
|
networks:
|
||||||
- toby-dev
|
- toby-dev
|
||||||
@ -19,7 +19,7 @@ services:
|
|||||||
|
|
||||||
php:
|
php:
|
||||||
build:
|
build:
|
||||||
context: docker/dev/php
|
context: environment/dev/php
|
||||||
args:
|
args:
|
||||||
INSTALL_XDEBUG: ${DOCKER_INSTALL_XDEBUG:-false}
|
INSTALL_XDEBUG: ${DOCKER_INSTALL_XDEBUG:-false}
|
||||||
container_name: toby-php
|
container_name: toby-php
|
||||||
@ -27,7 +27,7 @@ services:
|
|||||||
user: ${CURRENT_UID:-1000}
|
user: ${CURRENT_UID:-1000}
|
||||||
volumes:
|
volumes:
|
||||||
- .:/application
|
- .:/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:
|
networks:
|
||||||
- toby-dev
|
- toby-dev
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
|
@ -60,7 +60,7 @@ Directory structure little differs from a standard Laravel tree. We decided to r
|
|||||||
- **web** - nginx HTTP server
|
- **web** - nginx HTTP server
|
||||||
- **php** - php and composer stuff
|
- **php** - php and composer stuff
|
||||||
- **node** - npm stuff
|
- **node** - npm stuff
|
||||||
- **mysql** - database for local development
|
- **pgsql** - database for local development
|
||||||
- **mailhog** - for emails preview
|
- **mailhog** - for emails preview
|
||||||
|
|
||||||
### Running tests
|
### Running tests
|
||||||
|
@ -65,6 +65,12 @@ Route::middleware("auth")->group(function (): void {
|
|||||||
->name("year-periods.select");
|
->name("year-periods.select");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Route::get("/dupa", function () {
|
||||||
|
\Toby\Infrastructure\Jobs\CheckYearPeriod::dispatchSync();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
Route::middleware("guest")->group(function (): void {
|
Route::middleware("guest")->group(function (): void {
|
||||||
Route::get("login", fn() => inertia("Login"))
|
Route::get("login", fn() => inertia("Login"))
|
||||||
->name("login");
|
->name("login");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user