![]() For 3000 replace port on which your program is running. To find and kill process by port name on which that program is running. OR by this command sudo lsof -wni tcp:3000 Remove rails detached server by using command ps -aef | grep rails If you detached you rails server by using command "rails -d" then, OR Incase you're server was detached then follow below guidelines: So place your path shown here /your_project_path/tmp/pids/server.pidĪnd remove this server.pid file: rm /your_project_path/tmp/pids/server.pid ![]() Check /your_project_path/tmp/pids/server.pid. => Run rails server -h for more startup optionsĪ server is already running. => Rails 4.0.4 application starting in development on Normally when a web server is closed that file is deleted, but in some cases, proper deletion doesn't happen so you have to remove the file manually TL DR Just Run this command to Kill it sudo kill -9 $(lsof -i :3000 -t)īecause PID is locked in a file and web server thinks that if that file exists then it means it is already running.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |