-
Notifications
You must be signed in to change notification settings - Fork 1.2k
deploy to heroku, all image assets return 404 #1418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
When you create your I can't even deploy mine as far as you did, Heroku just keeps giving Application Error. |
Hmmm did you try In your |
@mcpDESIGNS my issue turned out to be a silly mistake i forgot about. My paths were all absolute: '../../..' instead of simply starting from '/assets'. I've been using this generator for a while, you'd think I would remember haha. As for your issue, can you please provide a Gist of the logs you get when you do 'grunt build'? I can only help you if i look at that. Cheers |
Ohh very nice! I wonder if I would have to change those as well. The strangest thing is that it doesn't build any of the html / other files. The entire When i was trying to do
When I try to do a Here's what the heroku logger is saying when I get
This stuff has been driving me insane for days, I'm kind of baffled why this is so confusing, shouldn't this process be straight forward?! |
Well, first of all you should not do 'grunt build' from the Edit: it does not mention to do it outside, but it only mentions to run 'heroku' commands in the /dist folder. |
Let me try all of that, after doing a
I really appreciate your help by the way, doing this alone (with no one else who knows heroku / grunt processes is quite difficult). |
Can you confirm that you properly ran |
Well well, npm install didn't work. Very strange! I'm wondering what's changed... Think I've seen others talk about
|
it says your version of node is -v v0.12.7 Try changing it to v0.10.36 (downgrade) using n (this is what works for me). N will allow you to switch between node versions. EDIT: node 4 actually works for me using angular-fullstack. It looks like it could be your version of node so simply upgrading to node 4 could solve the node-gyp issue. |
Just now tried downgrading, and even What version of node & npm are you using? Maybe that's the issue here |
I was using node v0.10.36 and npm 1.4.28 but node4 worked. are you on El Capitan? I remember reading about an issue related to node-gyp and El Capitan, try looking for that. |
Not yet I'm still on Maverick or whatnot. What the hell is this |
angular-fullstack is es6 ready, so your problem is actually that you are not able to install your node_modules from your packages.json. Once you solve that the rest should work. |
So I actually got a It just doesn't seem to create the Same Import issue that Heroku gets after attempting Starting background Express server Damn this is brutal |
My only advice at this point is Look into the node-gyp issue and try to get
|
Thanks Harris, you've been a great help! I'll hopefully figure it out sooner than later. |
Np! Good luck. |
Hey @harrisrobin any luck on this one?? I ended up getting alllll of my crazy issues fixed, but now I'm in the same boat as you with the Images returning 404 for Heroku haha You ever figure this one out? |
Hey, Make sure you are using relative paths for your assets and not absolute /../../ |
So right now, I have |
@mcpDESIGNS try Happy thanksgiving! |
BTW just a performance related suggestion: doing file io and asset serving Cheers. https://devcenter.heroku.com/articles/using-amazon-cloudfront-cdn On Fri, Nov 27, 2015 at 10:11 AM, Harris Robin Kalash <
|
Hi,
So for some reason after deploying to heroku all the images are returning a 404.
here is a gist of my gruntfile:
https://gist.github.com/HarrisRobin/02dd96241acd3ea51c20
Here is a live link to the website:
http://thingstodocity.herokuapp.com/
Anyone else having this issue?
Not sure if related to this:
#802
The text was updated successfully, but these errors were encountered: