Closed peterfox closed 11 months ago
@peterfox Cab you share your <project path>
? Or INFO Error: adapting config using caddyfile: parsing caddyfile tokens for 'frankenphp': strconv.Atoi: parsing "<project path>/public/frankenphp-worker.php": invalid syntax
was literally the error you saw?
@nunomaduro
The full path is /Users/peterfox/Code/Client Projects/peterfox/wedding-booth
so it does seem to be because somewhere isn't handling the space in the Client Projects
folder
Makes sense.
The fix is to wrap {$APP_PUBLIC_PATH}/frankenphp-worker.php
in double quotes:
worker "{$APP_PUBLIC_PATH}/frankenphp-worker.php" {$CADDY_SERVER_WORKER_COUNT}
See https://caddyserver.com/docs/caddyfile/concepts#tokens-and-quotes
Octane Version
2.2.3
Laravel Version
10.38.1
PHP Version
8.3.0
What server type are you using?
FrankenPHP
Server Version
FrankenPHP 1.0.1 PHP 8.3.0 Caddy v2.7.6 h1:w0NymbG2m9PcvKWsrXO6EEkY9Ru4FJK8uQbYcev1p3A=
Database Driver & Version
No response
Description
When running the server the following error is thrown:
INFO Error: adapting config using caddyfile: parsing caddyfile tokens for 'frankenphp': strconv.Atoi: parsing "<project path>/public/frankenphp-worker.php": invalid syntax
I can't get anything more for the error. Sorry it's quite vague.
Notes
FrankenPHP build info:
Steps To Reproduce
php artisan octane:install
and chose frakenphp. Then say yes to downloading the binary.php artisan octane:start
INFO Error: adapting config using caddyfile: parsing caddyfile tokens for 'frankenphp': strconv.Atoi: parsing "<project path>/public/frankenphp-worker.php": invalid syntax