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

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -