How can I solve this「Can't open perl script "/assets/prestart.pl": No such file or directory
coffee-r
HOBBYOP

2 years ago

Project ID: 4358cb63-ffcc-4ed0-8d93-a94e494345f2
deployment ID: fe64d2d

I'm trying to deploy a Laravel application.
Builder: Nixpacks
Providers: Php
Custom Build Command: npm run build && composer install --optimize-autoloader --no-dev && php artisan config:cache && php artisan migrate --force
Custom Start Command: perl /assets/[prestart.pl](prestart.pl) /assets/nginx.template.conf /nginx.conf && (php-fpm -y /assets/php-fpm.conf & nginx -c /nginx.conf & php artisan inertia:start-ssr)

Build Logs is end 「Publish time: 11.75 seconds」ok,
but Deploy Logs is Can't open perl script "/assets/[prestart.pl](prestart.pl)": No such file or directory

9 Replies

brody
EMPLOYEE

2 years ago

the php provider has changed and it no longer includes perl.

please undo your custom command so you can copy down the new default command, then make your changes to the new command


coffee-r
HOBBYOP

2 years ago

I will try. thanks!


coffee-r
HOBBYOP

2 years ago

Can't open perl script "/assets/[prestart.pl](prestart.pl)"


coffee-r
HOBBYOP

2 years ago

I removed Custom Start Command, now partially working. thank you.
Another problem is that Laravel doesn't seem to be working with SSR (Twitter cards don't seem to be displayed. example : https://godotplayer.com/games/yozoramaker4x). Is there any workaround?


brody
EMPLOYEE

2 years ago

i assume something that you where running in your custom command fixed this before?


coffee-r
HOBBYOP

2 years ago

before, i include custom command php artisan inertia:start-ssr, It used to work as SSR.

Now, i try 2 pattern.

  • Custom Start Command empty : Web application works, but does not display Twitter cards, etc.

  • Custom Start Command setting only php artisan inertia:start-ssr :
    Deploy Logs displayed

Starting SSR server on port 13714...
Inertia SSR server started.

, but Web application does works. (displayed Application failed to respond)


brody
EMPLOYEE

2 years ago

please see my original message


coffee-r
HOBBYOP

2 years ago

Sorry, I didn't understand English very wel.
From the Build log, we could probably figure out the default start command. Thanks!


brody
EMPLOYEE

2 years ago

feel free to translate into your language! 🙂


Loading...