Sha256: 3e7d35a6af3c9119ad9d6d0ef5141c9043ce9df6d1df448775b62e739b4c291f
Contents?: true
Size: 796 Bytes
Versions: 6
Compression:
Stored size: 796 Bytes
Contents
custom_commands do desc 'rails_boot', 'run rails boot script' def rails_boot #docker-compose exec website rails db:reset system <<~Desc docker exec #{ops_container} rails db:create 2>/dev/null Desc invoke :db_migrate end desc 'rails_console', 'run into rails console' def rails_console system <<~Desc docker exec -it #{ops_container} rails console Desc end desc 'db_migrate', 'run db migrate' def db_migrate system <<~Desc docker exec #{ops_container} rails db:migrate Desc end desc 'browse', 'open browser' def browse(tp = :web) domain = fetch("#{tp}_domain".to_sym) return unless domain doms = domain.split(',') system <<~Desc open http://#{doms.first} Desc end map 'open' => 'browse' end
Version data entries
6 entries across 6 versions & 1 rubygems