#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
|
||||
worker: php artisan queue:work
|
||||
|
@ -50,7 +50,7 @@ class DashboardController extends Controller
|
||||
|
||||
$holidays = Holiday::query()
|
||||
->whereDate("date", ">=", $now)
|
||||
->latest()
|
||||
->orderBy("date")
|
||||
->limit(3)
|
||||
->get();
|
||||
|
||||
|
@ -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:
|
||||
|
@ -7,4 +7,4 @@ location / {
|
||||
}
|
||||
location @rewriteapp {
|
||||
rewrite ^(.*)$ /index.php$1 last;
|
||||
}
|
||||
}
|
@ -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
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user