require "bundler/gem_tasks" require "sinatra/activerecord/rake" task :server do system('shotgun -p 9283') end task :spec do system('bundle exec rspec') end task :daemon do system('RAICK_ENV=local nohup rackup -p 9283 > /dev/null 2>&1 &') end namespace :db do task :load_config do require 'pushnote/app' end end task :start => ['db:create', 'db:migrate', 'daemon']