django-reactjs-boilerplate
django-reactjs-boilerplate copied to clipboard
Uploading this to a server like PythonAnywhere
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,
I'm not sure, I have never used PythonAnywhere. Maybe post some of the issues that you encountered?
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.