Nelly Nelly7,134 Points
error when running rails server
hi... I am having this problem:
rails s => Booting Puma => Rails 188.8.131.52 application starting in development on http://localhost:3000 => Run `rails server -h` for more startup options Puma starting in single mode... * Version 3.6.0 (ruby 2.3.1-p112), codename: Sleepy Sunday Serenity * Min threads: 5, max threads: 5 * Environment: development * Listening on tcp://localhost:3000 Exiting /Users/nelly/.rvm/gems/ruby-2.3.1/gems/puma-3.6.0/lib/puma/binder.rb:266:in `initialize': Address already in use - bind(2) for "::1" port 3000 (Errno::EADDRINUSE)
I know I can run another server like 3001 -p but I'd like to fix this ...
Thanks for your help
maybe Steve Hunter could help ?
Ethan Rivas9,972 Points
How are you closing your
bin/rails server command?.
That error comes because you already have a server running in that port, maybe you're closing your server with
ctrl + z, that puts your server "paused/suspended" and for continue using it you just need type
fgright in the console.
- You should use:
ctrl + cto end your current rails server.
If that's not your case you can still killing the server in that way :p