Results 1 to 3 of 3
Aug 22, 2012, 23:49 #1
How to use node.js app on my website
I've built a website with PHP and hosts it on Apache server e.g. Bluehost.
I want the app to power my website and what should I do? I do google and can't find solution.
On my computer I just in stalled node.js and WAMP. They run separately but work great together. I'd like use that app on the real website too. Any clue how can I achieve this without turning my computer into a web server (which I may consider this as the last resort).
My understanding now is I host my website normally and host an app on web hosting which node.js run and do what they called "pipe" it to my website.
Is the the right idea? How?
Aug 23, 2012, 13:39 #2
- Join Date
- Jul 2006
- Victoria, Australia
- 28 Post(s)
- 1 Thread(s)
Node will need to run on a different server or port to Apache.
If there's no problem with cross domain references between your PHP app and Node app you could host them at different places.
For node you may want to host it on heroku, which is free for a certain size of app / db. Great for testing and sharing this sort of thing out.
If could also share a database between the apps with matching credentials.
Hope it helps
Aug 23, 2012, 18:59 #3
Thank so much,
That's more than helpful. I can get the picture now.