24 Replies
Project ID:
N/A
All the containers are assembled that way. Not just PHP applications. It isolates your application from the other system folders that are part of the container.
👆
What in particular isn't working? I might be able to help; the PHP provider is my Frankenstein monster
I literally have an App folder with my controllers in it
so its overriding?
No
Your app folder will be in /app/app
so everything is in app/app
bro what?
Laravel should work with minimal configuration on Railway - just follow the instructions in the deploy logs.
No, everything's in /app.
I don't use laravel I build my stuff from scratch using Vanilla PHP
Okay
So my app is in app
Then it should just work, as long as you have an index.php file
Ah, OK. I assumed, since Laravel uses an
/app
directory to store stuffMakes sense you're good
What does your whole directory structure look like? Where's your
index.php
?in /public
(relative to your project root)
could i maybe override with htaccess?
Nope, it's easier than that
Set root folder to /public?
Already did
Do you use a router in your
index.php
, or do you have separate files?
noyes
I use my router in there
Alright
Remove your root directory setting, set the
NIXPACKS_PHP_ROOT_DIR
environment variable to public
, and NIXPACKS_PHP_FALLBACK_PATH
to /index.php
.Where do i do that and how? Sorry its my first time using railway
(for future reference: https://nixpacks.com/docs/providers/php)
In the "Variables" tab of your service.
Will check
QZ, just seen what you've said in #🎤|chit-chat
we won't be tolerating that kind of behaviour