Sha256: 901bda75cdb2eac0feee0786b29047e772fa1136d6bf3a9ca621f7da3c7c2577
Contents?: true
Size: 639 Bytes
Versions: 28
Compression:
Stored size: 639 Bytes
Contents
desc 'Set up the environment for running your web application' task :environment do |task| require SITE_ROOT + 'config/environment' # We ensure this is part of the shell environment so if other commands are invoked they will work correctly. ENV['RACK_ENV'] = RACK_ENV.to_s if defined?(RACK_ENV) ENV['DATABASE_ENV'] = DATABASE_ENV.to_s if defined?(DATABASE_ENV) # This generates a consistent session secret if one was not already provided: if ENV['UTOPIA_SESSION_SECRET'].nil? require 'securerandom' warn 'Generating transient session key for development...' ENV['UTOPIA_SESSION_SECRET'] = SecureRandom.hex(32) end end
Version data entries
28 entries across 28 versions & 2 rubygems