简体   繁体   中英

Upgraded to Ruby 1.9.3-p374, now default Rails port is 5000. How to change back?

I just upgraded to Ruby 1.9.3-p374 on my development machine. Now, when I start Rails with foreman start , it uses port 5000.

Here is my Procfile:

web: bundle exec rails server thin -p $PORT -e $RACK_ENV

My .env:

RACK_ENV=development
PORT=3000

Why is it giving me port 5000, and how can I change it back?

It was using the version installed under my old ruby directory- I hadn't installed it again since upgrading, I'd forgotten it wasn't in my gemfile. Installing it again worked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM