django-reactjs-boilerplate icon indicating copy to clipboard operation
django-reactjs-boilerplate copied to clipboard

Uploading this to a server like PythonAnywhere

Open Hewlbern opened this issue 8 years ago • 2 comments
trafficstars

Hi all,

I can run this fine on my computer but when I try to host it on a server I am encountering a bunch of problems.

Basically - What would be the easiest way to host this on a server?

Thanks,

Hewlbern avatar Aug 07 '17 09:08 Hewlbern

I'm not sure, I have never used PythonAnywhere. Maybe post some of the issues that you encountered?

mbrochh avatar Aug 19 '17 06:08 mbrochh

I see if I try to load it, say in AWS, using a non-localhost IP, that I get the following in the source for the root page:

<script type="text/javascript" src="http://127.0.0.1:3000/assets/bundles/vendors.js"></script>

This looks like it is trying to point at the nodejs instance, which is indeed running on localhost. What I would like to do is have nginx proxy from the external IP. I have this setup, and the root page loads from the right place, but this generated link is set to the local IP that nodejs is serving on. I cannot find out the exact point in the source where this IP is being loaded, or what I could do to modify it.

AdolfVonKleist avatar Sep 26 '17 13:09 AdolfVonKleist