last day (17 days later) » 

11:48 PM
0
Q: Public Folder in Heroku Not Working with Images and Routes

Nick McLeanI am at a loss... I have tried so many different things but can not get this to work right. Regardless if I run the Build or if Heroku runs the build, something weird is happening with the Public folder in my react app. Everything works really well in the local server. But things are not working ...

 
Can you access the files directly from heroku, such as myApp.heroku.com/favicon.ico?
 
No I can not - Though I am trying with a custom domain name. www.brianpruzzo.com/favicon.ico - Hold up for a sec I am messing with this...
 
Okej, so for some reason all of the unprocessed files and custom routes throw errors. Does the heroku logs --tail command provide any useful information about the errors, that you could post?
 
Posting above !
Do you find it weird that the path is /aaaa for that first error? I assume that's the error for the route /admin... (which is the only route on the page that links to another page)
 
The /aaaa is just me trying to figure out what is wrong :). I was hoping to get a 404, but was disappointed not to get anything. The only useful piece of information here seems to be the heroku H12 code. According to the docs, it means that your app took more than 30 seconds to process the request. Are you using a custom backend script or something similar that could get terribly stuck?
 
11:48 PM
I don't beleive so - It has been weird since I started this project. I can post the server file?
If that would help - I am not sure.
 
If it has been this weird from the beginning, maybe it's a configuration issue?
 
Maybe? I woudlnt be sure where to start looking for that either - do you know how to find out?
 
I haven't used heroku before unfortunately, so it's hard to judge if it's the script or not
 
oh darn yeah i get ya
Yeah its weird cause I didnt do anything different than my last projects
 
Does the same thing happen without the custom domain?
 
11:55 PM
Yeah --
The reason I assumed it was GIT was because heroku uses GIT to upload the website
and
There was a point where GIT was ignoring the Public folder as well as the Build folder
I deleted the GIT file and checked the .gitignore as well as the include/exclude in the config
the weirdest part was that nothing was in the .gitignore file or other directories
 
That seems veeery odd to me
So to publish something to heroku, you commit the changes and then they apply them, right?
 
yeah, i commit then do git push heroku master
then it goes
 

  last day (17 days later) »