angularjs - Hosting multiple MEAN stack apps on one VPS -
i learning how develop mean stack applications , have gotten far deploying app aws ec2 instance running ubuntu. works, i'm wondering if there way host multiple apps on separate "directories".
so example:
- domain.com/app1/#/ serve index view first app
- domain.com/app2/#/ same second app
i know writing necessary routes single app.js file, i'm looking way keep app1 , app2 separated possible.
is possible? or node apps suited live alone @ root of deployment location?
as above. nginx job. each app:
server { listen 80; server_name example.com; location / { proxy_pass http://127.0.0.1:8080; proxy_set_header host $host; } }
more reading here: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04
Comments
Post a Comment