Want to deploy two meteor application with different mongo url on ubuntu server


I have a two Meteor application which is working with different mongoDb i want to deploy both application on one server with different mongoDb url. And i want to deploy that application with making build of that application. So could you please tell me how can i do this? Because we are setting meteor application mongo url in env variable so i am little bit confuse that how my other application will work with different mongo url?