R
Railway5mo 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
Percy5mo ago
Project ID: 7ea7fbfa-fd31-463b-a6a9-aeede9da76dc
SDCore
SDCoreOP5mo ago
Thanks percy <3
Brody
Brody5mo ago
can you share your repo?
SDCore
SDCoreOP5mo ago
GitHub
GitHub - SDCore/sdcore.dev
Contribute to SDCore/sdcore.dev development by creating an account on GitHub.
SDCore
SDCoreOP5mo ago
Nothing special atm, but it's happened with a few projects I've tried to deploy with nginx
Brody
Brody5mo ago
I'm surprised this even worked on the legacy builder
SDCore
SDCoreOP5mo 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
Brody5mo ago
port 9000 is likely php-fpm
SDCore
SDCoreOP5mo ago
it do say that but i didnt know what it meant :yon_Nod_yes:
Brody
Brody5mo ago
do you have any kind of service level config?
SDCore
SDCoreOP5mo ago
Other than generating a domain I don't change anything from the defaults V2 runtime and w/ the new builder
Brody
Brody5mo 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
SDCoreOP5mo ago
old builder
SDCore
SDCoreOP5mo ago
new builder
Brody
Brody5mo ago
old bookmarklet detected
SDCore
SDCoreOP5mo ago
It's what you gave me D:
Brody
Brody5mo ago
yeah a while ago
Using subdirectory "web"
remember when i asked if you had any service level config lol
SDCore
SDCoreOP5mo ago
Mhm, I hadn't changed anything, what would that be under
Brody
Brody5mo ago
service settings
SDCore
SDCoreOP5mo ago
Nothin' there that mentions /web
Brody
Brody5mo ago
proof?
Brody
Brody5mo ago
interesting
SDCore
SDCoreOP5mo ago
:uhuhuhuh:
Brody
Brody5mo ago
yoink
No description
SDCore
SDCoreOP5mo ago
:FlushedSunglasses:
Solution
Brody
Brody5mo ago
set NIXPACKS_PHP_ROOT_DIR=/app/web
SDCore
SDCoreOP5mo ago
That works :yon_Nod_yes:
Brody
Brody5mo ago
pog
Want results from more Discord servers?
Add your server