Sha256: 690dbd559756d2c06b481d4958254ff2678f9d03702fb7d9d63e36123c2143cf
Contents?: true
Size: 632 Bytes
Versions: 8
Compression:
Stored size: 632 Bytes
Contents
desc 'Set up the environment for running your web application' task :environment do require_relative '../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
8 entries across 8 versions & 1 rubygems