Sha256: a03b2a744603c4bf2ea6fed3eeeb4a05cec4f165770f9b066911ce01c052dd58

Contents?: true

Size: 1.17 KB

Versions: 7

Compression:

Stored size: 1.17 KB

Contents

# Be sure to restart your server when you modify this file.

# Your secret key is used for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!

# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
# You can use `rake secret` to generate a secure secret key.

# Make sure the secrets in this file are kept private
# if you're sharing your code publicly.

development:
  secret_key_base: <%=
    path_to_key = File.expand_path("tmp/development_secret_key_base")
    if File.exists?(path_to_key)
      File.read(path_to_key).chomp
    else
      new_key = SecureRandom.hex(64)
      File.write(path_to_key, new_key)
      new_key
    end %>

test:
  secret_key_base: <%=
    path_to_key = File.expand_path("tmp/test_secret_key_base")
    if File.exists?(path_to_key)
      File.read(path_to_key).chomp
    else
      new_key = SecureRandom.hex(64)
      File.write(path_to_key, new_key)
      new_key
    end %>

# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
  secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jobshop-0.0.9 lib/jobshop/templates/secrets.yml.tt
jobshop-0.0.7 lib/jobshop/templates/secrets.yml.tt
jobshop-0.0.6 lib/jobshop/templates/secrets.yml.tt
jobshop-0.0.5 lib/jobshop/templates/secrets.yml.tt
jobshop-0.0.4.2p4 lib/jobshop/templates/secrets.yml.tt
jobshop-0.0.4.1p4 lib/jobshop/templates/secrets.yml.tt
jobshop-0.0.4.0p13 lib/jobshop/templates/secrets.yml.tt