New Builder Doesn't Automatically Detect /web Directory
sdcore
HOBBYOP

2 years ago

Project Link: https://railway.app/project/7ea7fbfa-fd31-463b-a6a9-aeede9da76dc

When deployed with the new builder, nginx returns a 403 with the following error in the console:
2024/07/13 06:42:35 [error] 33#33: *1 directory index of "/app/" is forbidden, client: 100.64.0.2, server: localhost, request: "GET / HTTP/1.1", host: "sdcoredev-production.up.railway.app"
When not using the new builder, it detects the /web directly properly and deploys without issue.

33 Replies

sdcore
HOBBYOP

2 years ago

Thanks percy <3


2 years ago

can you share your repo?


sdcore
HOBBYOP

2 years ago


sdcore
HOBBYOP

2 years ago

Nothing special atm, but it's happened with a few projects I've tried to deploy with nginx


2 years ago

I'm surprised this even worked on the legacy builder


sdcore
HOBBYOP

2 years ago

No config but that wasn't a problem pre-new builder


sdcore
HOBBYOP

2 years ago


sdcore
HOBBYOP

2 years ago

It also detects port 9000 when trying to generate a domain even tho it starts with port 8080


sdcore
HOBBYOP

2 years ago

Dunno if thats related at all <:3s_shrug:1057642637890433084>


2 years ago

port 9000 is likely php-fpm


sdcore
HOBBYOP

2 years ago

it do say that but i didnt know what it meant


2 years ago

do you have any kind of service level config?


sdcore
HOBBYOP

2 years ago

Other than generating a domain I don't change anything from the defaults
V2 runtime and w/ the new builder


2 years ago

build logs for a build done with legacy and build logs for a build done with the new builder please -


sdcore
HOBBYOP

2 years ago


sdcore
HOBBYOP

2 years ago


2 years ago

old bookmarklet detected


sdcore
HOBBYOP

2 years ago

It's what you gave me D:


2 years ago

yeah a while ago


2 years ago

Using subdirectory "web"


2 years ago

remember when i asked if you had any service level config lol


sdcore
HOBBYOP

2 years ago

Mhm, I hadn't changed anything, what would that be under


2 years ago

service settings


sdcore
HOBBYOP

2 years ago

Nothin' there that mentions /web


2 years ago

proof?



2 years ago

interesting


sdcore
HOBBYOP

2 years ago


2 years ago

yoink

1261582515551076400


sdcore
HOBBYOP

2 years ago

<:FlushedSunglasses:1054145877285015572>


2 years ago

set NIXPACKS_PHP_ROOT_DIR=/app/web


sdcore
HOBBYOP

2 years ago

That works


2 years ago

pog


Loading...