Sha256: 4a6dd099c97816f8d4bbe8ed8372de46a3e8d9db387c9baaa854c04f431c16d9
Contents?: true
Size: 723 Bytes
Versions: 5
Compression:
Stored size: 723 Bytes
Contents
require 'sinatra/activerecord/rake' require 'rake/testtask' require './lib/app' task :creds2heroku do Bundler.with_clean_env do File.readlines('.env').each do |var| pipe = IO.popen("heroku config:set #{var}") while (line = pipe.gets) print line end end end end task :deploy2heroku do pipe = IO.popen('git push heroku master --force') while (line = pipe.gets) print line end end namespace :test do task :prepare do `RACK_ENV=test rake db:create` `RACK_ENV=test rake db:migrate` `RACK_ENV=test SECRET=secret rake db:seed` end end task :test do Rake::TestTask.new do |t| t.pattern = 'test/*_test.rb' t.libs << 'test' t.verbose = true end end
Version data entries
5 entries across 5 versions & 1 rubygems