I just got deployed for the first time w a new (to me) hosting
provider yesterday with an evolving app on a project for a client and
one thing I still am having pros with is that all the assets the app
needs (image, css, and js files) are not being accessed because the
app is trying to get them from localhost.
Firebug shows the following kind of thing within the script tags as
the src for the JS files:
src=“http://localhost:3000//javascripts/prototype.js?1257382712”
I havent seen this before on other apps I’ve deployed elsewhere… I
cant see anything where my config is hardwiring this or anything.
So, here are my thoughts and maybe someone can tell me if any of them
look to be the cause:
-
it’s me - somewhere I have screwed up my configuration within the
app itself… maybe someone has suggestions where to look -
it’s the hosting provider - in the sense that there’s something in
my deployment with the host that I got wrong… again, any ideas of
where to look? (I know this could be hard to answer 'cause I’m keeping
the hosting provider nameless) -
it’s DNS - I say this because the client hasnt set up DNS yet
(stealth mode thinking) and the app is being reached by typing in the
IP addrs… could this be causing the app to look to localhost? not
sure if that’s the way things work and the app goes from page to page
using the IP addrs as the domain vs localhost (which it only seems to
do for these assets)
hoping someone has seen/fixed this before or just knows more than me
and can help