R
Railway2mo ago
SDCore

New Builder Doesn't Automatically Detect /web Directory

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"
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.
Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Solution:
set NIXPACKS_PHP_ROOT_DIR=/app/web
Jump to solution
29 Replies
Percy
Percy2mo ago
Project ID: 7ea7fbfa-fd31-463b-a6a9-aeede9da76dc
SDCore
SDCore2mo ago
Thanks percy <3
Brody
Brody2mo ago
can you share your repo?
SDCore
SDCore2mo ago
GitHub
GitHub - SDCore/sdcore.dev
Contribute to SDCore/sdcore.dev development by creating an account on GitHub.
SDCore
SDCore2mo ago
Nothing special atm, but it's happened with a few projects I've tried to deploy with nginx
Brody
Brody2mo ago
I'm surprised this even worked on the legacy builder
SDCore
SDCore2mo ago
No config but that wasn't a problem pre-new builder :kekko: It also detects port 9000 when trying to generate a domain even tho it starts with port 8080 Dunno if thats related at all :3s_shrug:
Brody
Brody2mo ago
port 9000 is likely php-fpm
SDCore
SDCore2mo ago
it do say that but i didnt know what it meant :yon_Nod_yes:
Brody
Brody2mo ago
do you have any kind of service level config?
SDCore
SDCore2mo ago
Other than generating a domain I don't change anything from the defaults V2 runtime and w/ the new builder
Brody
Brody2mo ago
build logs for a build done with legacy and build logs for a build done with the new builder please - https://bookmarklets.up.railway.app/log-downloader/
SDCore
SDCore2mo ago
old builder
SDCore
SDCore2mo ago
new builder
Brody
Brody2mo ago
old bookmarklet detected
Want results from more Discord servers?
Add your server