Sha256: cd3cc389f142cd63c0dc2785cefe89482b9467dbb8d1e2549e1604c5ca174188

Contents?: true

Size: 790 Bytes

Versions: 7

Compression:

Stored size: 790 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
	RACK_ENV = (ENV['RACK_ENV'] ||= 'development').to_sym
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

task :default => :server

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
utopia-1.6.5 setup/site/Rakefile
utopia-1.6.4 setup/site/Rakefile
utopia-1.6.3 setup/site/Rakefile
utopia-1.6.2 setup/site/Rakefile
utopia-1.6.1 setup/site/Rakefile
utopia-1.6.0 setup/site/Rakefile
utopia-1.5.2 setup/site/Rakefile