fire up the console in the test env:
RAILS_ENV=test script/console
then require a Ruby test runner:
require 'test/unit/ui/console/testrunner'
fire up the console in the test env:
RAILS_ENV=test script/console
then require a Ruby test runner:
require 'test/unit/ui/console/testrunner'
reloader:
server = TCPServer.new 2222
puts 'loading hot reloader...'
Thread.new do
puts 'firing up a thread....'
loop do
Thread.start(server.accept) do |client|
file = client.gets.chomp.gsub('/Users/dan/promptworks/colonial-surety/', '')
/sbin/ip route|awk '/default/ { print $3 }' |
Docker postgres command:
docker run --rm --name my-postgres -p 5432:5432 -v [full dir path]/postgres.bk:/var/lib/postgresql/data postgres
--rm
: remove an existing instances
-p
bind the port to the host machine