Issue
I'm rather new to NodeJS and I'd like to deploy the API and the application on the same server, which means same IP but on different ports.
From different search I saw it's possible but I don't know how. Can I use Restify for this redirection ?
Solution
in this code app.listen(PORT HERE); on your two apps just define a different ports for each one.
For example
in App1 = app.listen(3000);
in App2 = app.listen(8000);
then to access each one is like :
App1 = http://localhost:3000
App2 = http://localhost:8000
Answered By - Jose Gratereaux Answer Checked By - Timothy Miller (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.