Skip to content

Instantly share code, notes, and snippets.

@Leopere
Forked from anonymous/-
Last active August 29, 2015 14:18
Show Gist options
  • Save Leopere/60d45332b3843f0843a2 to your computer and use it in GitHub Desktop.
Save Leopere/60d45332b3843f0843a2 to your computer and use it in GitHub Desktop.
# docker ps |grep data
2afa8917717e local_discourse/data:latest "/sbin/boot" 5 minutes ago Up 5 minutes 0.0.0.0:5432->5432/tcp, 0.0.0.0:6379->6379/tcp data
I, [2015-04-01T03:12:12.686184 #43] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
URGENT: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
Failed to initialize site default
rake aborted!
Redis::CannotConnectError: Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED)
FAILED
--------------------
RuntimeError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 161 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:105:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
0d156b72b11b9e82998783204143c24af3389498427e1895ddc1b559442a9f9f
FAILED TO BOOTSTRAP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment