R
Railway15mo ago
Leo

React app deployment

After reading Brody's guide, I've installed "serve" and changed the package.json accordingly. I'm reaching step 8/10 in the deploy, but failing, probably because of this: "#12 18.67 Treating warnings as errors because process.env.CI = true." and I have ton of warning. I'm quite a beginner, but hopefully I gave enough details, and can supply more if needed 🙂 94cf390d-4f72-4f58-87aa-9046b2f0d5fa
No description
No description
No description
37 Replies
Percy
Percy15mo ago
Project ID: 94cf390d-4f72-4f58-87aa-9046b2f0d5fa
Leo
LeoOP15mo ago
94cf390d-4f72-4f58-87aa-9046b2f0d5fa Well, seems like CI = false did the trick <:carol_baskin:720702427229061150>
Brody
Brody15mo ago
yeah that same guide at the bottom gives additional tips, and one of is about CI
Leo
LeoOP15mo ago
lol missed that Thanks a lot Brody! Really helpful stuff salute
Brody
Brody15mo ago
though, I have recently been recommending caddy as a far more cost effective way to run frontend apps on railway, serve uses around 60-70mb of ram and caddy uses sub 30mb
Leo
LeoOP15mo ago
Well, if it's an easy switch, I'm up to it What's the upsides for me if I may ask
Brody
Brody15mo ago
if your interested in that I have a template that shows that, using caddy on railway should be a simple as copying two files from my template repo into your repo less memory, less money
Leo
LeoOP15mo ago
and stupid question, why there's no favicon in my deploy? mikestare
Brody
Brody15mo ago
you never set one?
Leo
LeoOP15mo ago
I have it set locally I mean, when I run the app I have it on the local:3000 tab
Brody
Brody15mo ago
open up the console logs and see if there are failed requests to the favicon.ico
Leo
LeoOP15mo ago
No description
Leo
LeoOP15mo ago
Seems like "everything" loads fine
Brody
Brody15mo ago
is the png the favicon?
Leo
LeoOP15mo ago
Nope It would be favicon.ico
Leo
LeoOP15mo ago
This is the local tab
No description
Brody
Brody15mo ago
show me the head html that specifies the favicon to use
Leo
LeoOP15mo ago
I believe it's the default with create-react-app
No description
Brody
Brody15mo ago
and let's see that same code from the Railway site
Leo
LeoOP15mo ago
No description
Brody
Brody15mo ago
and what happens when you click that favicon link
Leo
LeoOP15mo ago
nothing 😐
Brody
Brody15mo ago
wdym something has to happen, good or bad
Leo
LeoOP15mo ago
It's unclickable
Brody
Brody15mo ago
go to it manually SSL error?
Leo
LeoOP15mo ago
seems like it
No description
Brody
Brody15mo ago
any reason for hiding that url?
Leo
LeoOP15mo ago
Or something of that nature It's a private project I don't mind sharing with you but not the whole server
Brody
Brody15mo ago
okay please share just want the link
Leo
LeoOP15mo ago
DM
Brody
Brody15mo ago
send it here, the second I copy it, I will delete the message from the server
Leo
LeoOP15mo ago
K
Brody
Brody15mo ago
favicon works for me
Leo
LeoOP15mo ago
well cryingman
Brody
Brody15mo ago
typical browser cache, try a different browser or in incognito
Leo
LeoOP15mo ago
Thanks a lot Brody Sorry for wasting your time
Brody
Brody15mo ago
you have not wasted my time, I'm here to help
Want results from more Discord servers?
Add your server