Ruby and PHP in the same VPS [closed]

1

I am considering the idea of hiring a VPS in Linode to host different projects. The issue is that some of them are in PHP and others in Rails. My question is:

Is it possible to configure a VPS to run both technologies?

Would you recommend a way to do this?

I want to configure the server for a deploy with GIT, I'm based on the heroku for my server, I'm open to suggestions.

PS: I want to configure an Ubuntu Server myself

    
asked by anonymous 11.04.2017 / 22:21

1 answer

0

Yes you may just need to set up different ports for the service.

My suggestion would be to change the port of both services to an unconventional port! = 80 and install nginx to work as a reverse proxy redirecting internally to application

As for deploy by git this will be a configuration the indifferent part of how you configure the applications

    
12.04.2017 / 02:40