Running multiple web frameworks on the same machine?

I want to start experimenting with all of these various web frames that are available. I was wondering if they can all work on the same machine at the same time?

I know that all my database services can work simultaneously, along with Javascript frameworks, but what about something like Rails and Java applications? Can they play with each other? Will Apache handle all this for me?

+3
source share
6 answers

Yes, since almost any language environment works like regular code for a language, just by providing a framework for the applications you write, they can coexist well with other frameworks for the same or other languages. You can, of course, run Rails and the Java framework on one computer - you can even run Rails on JRuby and the Java application server

It looks like you are just starting to program. I would recommend learning some basics first. For example, if you want to learn Ruby, try the Pickaxe book , write some simple scripts, then go on to a ruby ​​web structure like Sinatra or Rails. You will better understand the difference between the language and the framework, how each is installed and runs on your computer, etc.

+3

- , ( 80). Rails :

ruby script\server

3000.

. Ruby Python ( ) , , .

+2

, . , . (, tomcat vs apache), , , - 80 8080.

(, Apache), , , - .

, , . , Rails Java, Grails Java .

0

Rails, PHP Java Apache. , apache, , . , , .

0

PHP, Java Rails , .

  • Java Tomcat Jetty.
  • Rails Webrick, .
  • PHP XAMPP ( MAMP, Mac) .
0
source

I run Rails and ASP.NET MVC on the same computer, and I just set the local servers to run on different ports. But usually the default setting (for example, Rails on port 3000) does not conflict with each other, plus each platform usually has its own path to start (LAMP, Webrick, Montgrel ...), so you should be fine.

0
source

Source: https://habr.com/ru/post/1706759/


All Articles