R
Railway14mo 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
Percy14mo ago
Project ID: 94cf390d-4f72-4f58-87aa-9046b2f0d5fa
Leo
Leo14mo ago
94cf390d-4f72-4f58-87aa-9046b2f0d5fa Well, seems like CI = false did the trick <:carol_baskin:720702427229061150>
Brody
Brody14mo ago
yeah that same guide at the bottom gives additional tips, and one of is about CI
Leo
Leo14mo ago
lol missed that Thanks a lot Brody! Really helpful stuff salute
Brody
Brody14mo 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
Leo14mo ago
Well, if it's an easy switch, I'm up to it What's the upsides for me if I may ask
Brody
Brody14mo 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
Leo14mo ago
and stupid question, why there's no favicon in my deploy? mikestare
Brody
Brody14mo ago
you never set one?
Leo
Leo14mo ago
I have it set locally I mean, when I run the app I have it on the local:3000 tab
Brody
Brody14mo ago
open up the console logs and see if there are failed requests to the favicon.ico
Leo
Leo14mo ago
No description
Leo
Leo14mo ago
Seems like "everything" loads fine
Brody
Brody14mo ago
is the png the favicon?
Leo
Leo14mo ago
Nope It would be favicon.ico
Leo
Leo14mo ago
This is the local tab
No description
Brody
Brody14mo ago
show me the head html that specifies the favicon to use
Leo
Leo14mo ago
I believe it's the default with create-react-app
No description
Brody
Brody14mo ago
and let's see that same code from the Railway site
Leo
Leo14mo ago
No description
Brody
Brody14mo ago
and what happens when you click that favicon link
Leo
Leo14mo ago
nothing 😐
Brody
Brody14mo ago
wdym something has to happen, good or bad
Leo
Leo14mo ago
It's unclickable
Brody
Brody14mo ago
go to it manually SSL error?
Leo
Leo14mo ago
seems like it
No description
Brody
Brody14mo ago
any reason for hiding that url?
Leo
Leo14mo ago
Or something of that nature It's a private project I don't mind sharing with you but not the whole server
Brody
Brody14mo ago
okay please share just want the link
Leo
Leo14mo ago
DM
Brody
Brody14mo ago
send it here, the second I copy it, I will delete the message from the server
Leo
Leo14mo ago
K
Brody
Brody14mo ago
favicon works for me
Leo
Leo14mo ago
well cryingman
Brody
Brody14mo ago
typical browser cache, try a different browser or in incognito
Leo
Leo14mo ago
Thanks a lot Brody Sorry for wasting your time
Brody
Brody14mo ago
you have not wasted my time, I'm here to help
Want results from more Discord servers?
Add your server