For me it's "manually start postgresql"
Every once in a while my postgres server isn't running and I know to punch that into my browser and land on this Stack Overflow question, where I proceed to copy this command into my terminal:
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
It happens infrequently enough that I never bother to alias it or remember how to type it out. I just remember what to Google.
I have postgres installed via homebrew. So I use brew info postgres to copy the start command :)
brew info postgres
So did I then I realize how many precious minutes of my life I'm losing so I decided to buy a domain for 75 cents mycodesnippets.space :) I write things down little by little as soon as I need it the first time or I risk to never do it by lazyness !
I was gonna say this. Have bookmarked the stackoverflow post on this. :D
I could never remember "rails new myapp --database=postgresql" :|
Oh yes, I even googled and used this today because my service keeps stopping.
cant you just sudo service postgresql start ? :P
On Linux, yes. On OSX, no unfortunately.
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.