Skip to content

Research exercise: two Ruby on Rails applications each in its own subdirectory on one virtual host.

Notifications You must be signed in to change notification settings

f4z4on/multi-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MultiRails

An exploration into running multiple Ruby on Rails application each in its own subdirectory on the same virtual host.

There are two very simple RoR applications created by running:

rails new one --skip-yarn --skip-action-mailer --skip-active-record --skip-active-storage --skip-action-cable --skip-sprockets --skip-spring --skip-listen --skip-javascript --skip-bootsnap --skip-system-test

This is basically using all the “skips” documented in rails new -h, so the applications are really bare-bones.

To run the code, change the first two Defines in multi-rails.conf and include it to your Apache HTTP Server configuration. Then, start each RoR application from their own directories with this command:

rails s -b $PWD/tmp/sockets/server.sock

Open virtual host you configured in the browser and you should see you have two running Ruby on Rails applications on one virtual host.

About

Research exercise: two Ruby on Rails applications each in its own subdirectory on one virtual host.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published