Sha256: 9a67e2ddb4cd3f9a9354be4eadddab464b17959af66707e8506b4b75d9bed706

Contents?: true

Size: 754 Bytes

Versions: 2

Compression:

Stored size: 754 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

2 entries across 2 versions & 1 rubygems

Version Path
utopia-1.7.1 setup/site/tasks/utopia.rake
utopia-1.6.13 setup/site/tasks/utopia.rake