Terminal won't allow me to enter command after "rails server" any answer please

509 Views Asked by At

I am very new to this platform, after starting webrick my terminal not allowing me to enter command, is there any clue for it?

2

There are 2 best solutions below

5
On BEST ANSWER

Probably if you started your webrick, your server is now running and listening on http://localhost:3000. To see it, simply open a browser and point to that address.

If you want to stop the server (and enter other commands) as you seem to want to do, press ctrl + c to kill the server

0
On

What happens is when you start a webrick server, that specific terminal get occupied.

There are two methods of then writing more commands.

  • Either press ctrl + t and you will have a new terminal opened up where you can go to the same directory where you were and then write your commands there.
  • Or, you can make the server run in the background using : rails s& and you can get it in the foreground using fg