Sha256: ce2d16e62d2a9d6dff5ed0edb11f90a1d0d6815a148a7e4467de4918a784ed97

Contents?: true

Size: 398 Bytes

Versions: 5

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2017-2022, by Samuel Williams.

def environment(name: nil)
	require_relative '../lib/utopia/logger'
	
	if name
		ENV['UTOPIA_ENV'] = name
	end
	
	require File.expand_path('config/environment', context.root)
end

# Start the development server.
def development
	self.environment
	
	exec('guard', '-g', 'development')
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
utopia-2.23.0 bake/utopia.rb
utopia-2.22.2 bake/utopia.rb
utopia-2.22.1 bake/utopia.rb
utopia-2.22.0 bake/utopia.rb
utopia-2.21.0 bake/utopia.rb