Bulid command failed to cd into target directory

AJA J5/6/2023
I have a React app located within a GitHub repo, like this

Github repo
|-----------react_app
|-----------"other stuff"

This is my build command
cd react_app && npm install && npm run build for build command

However, build failed with error
#13 0.404 /bin/bash: line 1: cd: web_chat: No such file or directory

On build settings, I have / as root directory

I am new to Railway, would greatly appreciate any help
Bbrody5/6/2023
share your repo please?
AJA J5/6/2023
a686cf21-bbfd-4ddb-9e0c-5c11cd434e88
Bbrody5/6/2023
^
AJA J5/6/2023
https://github.com/arthurjis/nplace_llm
and web_chat is the react app
Bbrody5/6/2023
for your react app, please update it according to this template
https://github.com/brody192/create-react-app-starter
Bbrody5/6/2023
once done, let me know and i will tell you the next step
AJA J5/6/2023
Thanks for helping! I think my app has a similar structure. The app is just located in a subdirectory in the repo
Bbrody5/6/2023
also, remove @railway/cli from the dependencies
AJA J5/6/2023
Should I create a new repo with only the react app?
Bbrody5/6/2023
no no
Bbrody5/6/2023
you just need to use serve like my template does
Bbrody5/6/2023
remove the key and regen it please
Bbrody5/6/2023
AJA J5/6/2023
Yea I kept the repo private before...
Bbrody5/6/2023
its still bad even on private repos
AJA J5/6/2023
I see. lesson learned. thanks
Bbrody5/6/2023
please make the changes to your react app i suggested
AJA J5/6/2023
Is this what you are refering to?
Bbrody5/6/2023
yes
AJA J5/6/2023
I made the changes
AJA J5/6/2023
now it looks like this.
also removed dependency on @railway/cli and all those api keys...
Bbrody5/6/2023
you have not installed serve
Bbrody5/6/2023
and your lock file is out of sync
Bbrody5/6/2023
running npm i serve will fix both those things
AJA J5/6/2023
just did that
AJA J5/6/2023
I see the lock file is updated
Bbrody5/6/2023
okay, show me your service variables please
AJA J5/6/2023
oh I don't have any...
Bbrody5/6/2023
perfect
Bbrody5/6/2023
clear both your build and start commands
AJA J5/6/2023
sorry... total noob here
Bbrody5/6/2023
not know how to clear those things?
AJA J5/6/2023
in build settings?
Bbrody5/6/2023
in the service settings
AJA J5/6/2023
Bbrody5/6/2023
This is my build command
cd react_app && npm install && npm run build for build command
where did you have this set?
AJA J5/6/2023
in build command in the screenshot above
Bbrody5/6/2023
perfect
Bbrody5/6/2023
next step
Bbrody5/6/2023
set Root Directory to /web_chat in the service settings
AJA J5/6/2023
done
Bbrody5/6/2023
and tell me if anything goes wrong
AJA J5/6/2023
ok. building now.
how come the build log says No build logs found for deployment
Bbrody5/6/2023
screenshot please
AJA J5/6/2023
Bbrody5/6/2023
well thats not supposed to happen lol
Bbrody5/6/2023
you are welcome to cancel it and try again
AJA J5/6/2023
hmmm I also tried railway up from terminal
I was able to see logs there
Bbrody5/6/2023
you don't need to use railway up, you are deploying from github
AJA J5/6/2023
build succeed and it says active! but I still see no logs
Bbrody5/6/2023
unlucky
Bbrody5/6/2023
can you access the site with the domain?
AJA J5/6/2023
Bbrody5/6/2023
go to the service settings and generate one
AJA J5/6/2023
I thought railway would give me an URL to access the site
AJA J5/6/2023
yea
AJA J5/6/2023
I can
AJA J5/6/2023
Just generated a URL
Bbrody5/6/2023
you have to tell railway you want want first, since you could be running a discord bot for example, that doesn't need a domain so it would be wasteful to generate one if it might not be needed
AJA J5/6/2023
I see
AJA J5/6/2023
Normally there should be logs right?
Bbrody5/6/2023
yes normally, but railway is in the progress of migrating their logging infrastructure so you might have got caught up in that
AJA J5/6/2023
I see. Thank you so much!
Bbrody5/6/2023
so website works?
AJA J5/6/2023
yes.
But seems like the flask server is not running.
AJA J5/6/2023
Is there anything I need to do for the concurrently?
Bbrody5/6/2023
yes that would need to be ran in a separate service
AJA J5/6/2023
I see...
Bbrody5/6/2023
move it to its own root folder
Bbrody5/6/2023
then create a new service deplying from the same github repo, and just the root dir accordingly
AJA J5/6/2023
Will do. Thank you so much!
Bbrody5/6/2023
no problem!
Bbrody5/6/2023
AJA J5/6/2023
👍