Sha256: e8a0abb39841aae84815d8487920d5587b94201da6ee5174bd153fbf44518fc3
Contents?: true
Size: 751 Bytes
Versions: 5
Compression:
Stored size: 751 Bytes
Contents
desc 'Run by git post-update hook when deployed to a web server' task :deploy do # This task is typiclly run after the site is updated but before the server is restarted. end desc 'Set up the environment for running your web application' task :environment do require_relative '../config/environment' end desc 'Run a server for testing your web application' task :server => :environment do port = ENV.fetch('SERVER_PORT', 9292).to_s exec('puma', '-v', '-p', port) end desc 'Start an interactive console for your web application' task :console => :environment do require 'pry' require 'rack/test' include Rack::Test::Methods def app @app ||= Rack::Builder.parse_file(File.expand_path("config.ru", __dir__)).first end Pry.start end
Version data entries
5 entries across 5 versions & 1 rubygems