开发者

Rails 3 - 2 projects on localhost suddenly?

开发者 https://www.devze.com 2023-03-30 23:24 出处:网络
I would need to 开发者_如何学JAVAhave run 2 projects in Rails (v. 3) on my localhost. I use WEBrick - is it possible?

I would need to 开发者_如何学JAVAhave run 2 projects in Rails (v. 3) on my localhost. I use WEBrick - is it possible?

In this time I have to switch among 2 or 3 projects my server and it's a bit uncomfortable - so - it's possible to work on more projects with WEBrick suddenly?

Thank you


Use multiple ports. The first instance, you can run on, say 80. The second, you run on 81.
You can open one tab with localhost:80 (or just localhost), and another tab with localhost:81 in your browser.

(If you're using ports below 1000 or so on a Mac, you need to have administrator rights: use sudo.)

0

精彩评论

暂无评论...
验证码 换一张
取 消