Sha256: b574d838381691609f61bb643c838ed745ef41caa13d24473c6fb6bd5c226783
Contents?: true
Size: 779 Bytes
Versions: 7
Compression:
Stored size: 779 Bytes
Contents
# encoding: UTF-8 begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end # Load dummy app tasks if ENV['DUMMY'] APP_RAKEFILE = File.expand_path('../spec/dummy/Rakefile', __FILE__) load 'rails/tasks/engine.rake' end Bundler::GemHelper.install_tasks require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task default: :spec desc 'Start development web server' task :dev do host = 'localhost' port = 9292 require 'puma' require 'rails/commands/server' ENV['RACK_ENV'] = ENV['RAILS_ENV'] = 'development' Dir.chdir 'spec/dummy' Rack::Server.start( environment: 'development', Host: host, Port: port, config: 'config.ru', server: 'puma' ) end
Version data entries
7 entries across 7 versions & 1 rubygems