$ psql psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Solved by :
rm /usr/local/var/postgres/postmaster.pid
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| def generate_random_string(length) | |
| rand(36**length).to_s(36) | |
| end |
| DISABLED_TASKS = [ | |
| 'db:drop', | |
| 'db:migrate:reset', | |
| 'db:schema:load', | |
| 'db:seed', | |
| # ... | |
| ] | |
| namespace :db do | |
| desc "Disable a task in production environment" |
| link_to 'Reset', message_path(@message), :data => {:confirm => 'Are you sure?'} |
$ psql psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Solved by :
rm /usr/local/var/postgres/postmaster.pid
| require 'rake' | |
| # http://ruby-doc.org/stdlib/libdoc/net/http/rdoc/classes/Net/HTTP.html | |
| require 'net/http' | |
| desc "this is a test" | |
| task :testing_rake do | |
| puts "Hello from rake!" | |
| end | |
| namespace :remote_file do |
[your-slack].slack.com/services/new/hubotIf you want to rename the automatically generated heroku domain name:
Get the Heroku db as detailed here: http://devcenter.heroku.com/articles/pgbackups#exporting_via_a_backup
heroku pg:backups capture
heroku pg:backups --app <you-app-name> #=> <backup_num>
heroku pg:backups public-url <backup_num> #=> <backup_url>
curl -o db/latest.dump <backup_url>
echo 'db/latest.dump' >> .gitignore # if not already done