How to deploy from subfolder?

My main project lies in a subfolder of my main-branch! I couldn't find any option in railway for selecting subfolder! Can't I deply it from subfolder?
Solution:
i am able to load your site from the domain now
Jump to solution
26 Replies
Percy
Percy14mo ago
Project ID: N/A
Rahat Bin Taleb
Rahat Bin TalebOP14mo ago
thanks for the referrence but do i have to go to my codebase for changing? Is there no option to select or write the subfolder in ui?
Brody
Brody14mo ago
strangely enough, that docs section leaves out where you would find this setting, its in the service settings, no code changes needed
Rahat Bin Taleb
Rahat Bin TalebOP14mo ago
its saying no start command could be found but inside my server folder package,json there is a start command in the script
Brody
Brody14mo ago
what did you set the root dir to?
Rahat Bin Taleb
Rahat Bin TalebOP14mo ago
/server
Brody
Brody14mo ago
send me the package.json in the server folder please?
Rahat Bin Taleb
Rahat Bin TalebOP14mo ago
w8 for a minute something is happening
Rahat Bin Taleb
Rahat Bin TalebOP14mo ago
No description
Rahat Bin Taleb
Rahat Bin TalebOP14mo ago
i think it worked but how can i acces it now?
Brody
Brody14mo ago
if you havent generated a domain, go into the service settings and generate a domain i recommend taking a look through the service settings, just so you know what settings are available
Rahat Bin Taleb
Rahat Bin TalebOP14mo ago
ok but i can see only project settings and normal deployment settings where is service settings
Brody
Brody14mo ago
open the service and then click the settings tab
Rahat Bin Taleb
Rahat Bin TalebOP14mo ago
No description
Rahat Bin Taleb
Rahat Bin TalebOP14mo ago
this part?
Brody
Brody14mo ago
that is the service settings tab yes
Rahat Bin Taleb
Rahat Bin TalebOP14mo ago
so only domain related thing i can see is railway config path or something like that
Brody
Brody14mo ago
spend a little time looking, dont give up so easily you are able to use your scroll wheel to scroll through the settings
Rahat Bin Taleb
Rahat Bin TalebOP14mo ago
No description
Rahat Bin Taleb
Rahat Bin TalebOP14mo ago
clciking on that says not found but in local host in route / i can see my project express serving some static files
Brody
Brody14mo ago
you just created it, please be patient
Rahat Bin Taleb
Rahat Bin TalebOP14mo ago
ok! I am very new to software engineering ! Noob you can say! But heard of railway is very much easier to deploy! And very much impressed also with the help service! Will wait until something comes sir!!
Solution
Brody
Brody14mo ago
i am able to load your site from the domain now
Rahat Bin Taleb
Rahat Bin TalebOP14mo ago
yeah worked ! Thanks a lot ! thoguh there some database issues! I have to fix now but on your half it's working fine! Thanks a lot for the help and patience! ❤️bye
Brody
Brody14mo ago
no problem 🙂
Want results from more Discord servers?
Add your server