Some old PID (process id) file to remove. Your computer didn't complete the shutdown process completely which means postgres didn't delete the PID (process id) file.
- Ubuntu
sudo service postgresql start
- Mac
brew services restart postgresql
- Uninstall postgres
brew uninstall postgresql
- Reinstall postgres
brew install postgresql
- Check that postgress was installed
psql -d postgres
This command should take you to a irb like interface inside your terminal If you get no errors and you are in that interface run step 4 - Exit postgress interface \q
- Go up one folder to your /code/GITHUBUSERNAME, and delete your previous mr cocktail
cd .. rm -rf rails-mister-cocktail
- Make sure you go into your github account and delete the old repository of mister cocktail
- Start the challenge again Specifically for OSX users
Some old PID (process id) file to remove. You can delete the server.pid file. rm /your_project_path/tmp/pids/server.pid solution
Kill whatever is on port 3000 (which is what webrick normally uses), type in your terminal to find out the PID of the process: $ lsof -wni tcp:3000
Then, use the number in the PID column to kill the process: $ kill -9 PID