ruby on rails - Running multiple apps on multiple ports through rack -


i trying run 2 apps on 2 instances of thin on different ports like

in config.ru

run app1, port: 3000 run app2, port: 4567

how can ?

since it's 2 apps, can't start them simultaneously in 1 config.ru.

if they're separated 2 apps, start them like

# app1 thin -r config.ru -a 127.0.0.1 -p 3000 start # app2 thin -r config.ru -a 127.0.0.1 -p 4567 start 

or specify port in config.ru first line directly, take app1 example

#\ -p 3000 ... ...  run app1 

Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -