Sha256: f7b13e50e5c3083d4e5ea223d05c7b062b2c0c0c02ec7a66849f648ade2bec25
Contents?: true
Size: 746 Bytes
Versions: 2
Compression:
Stored size: 746 Bytes
Contents
require 'sinatra/activerecord/rake' require 'resque/tasks' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shopify-sinatra-app-0.1.5 | lib/generator/Rakefile |
shopify-sinatra-app-0.1.4 | lib/generator/Rakefile |