mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
56 lines
1.9 KiB
Ruby
56 lines
1.9 KiB
Ruby
Notebook::Application.configure do
|
|
# Settings specified here will take precedence over those in config/application.rb
|
|
|
|
# In the development environment your application's code is reloaded on
|
|
# every request. This slows down response time but is perfect for development
|
|
# since you don't have to restart the web server when you make code changes.
|
|
config.cache_classes = false
|
|
|
|
# Log error messages when you accidentally call methods on nil.
|
|
config.whiny_nils = true
|
|
|
|
# Show full error reports and disable caching
|
|
config.consider_all_requests_local = true
|
|
config.action_controller.perform_caching = false
|
|
config.eager_load = false
|
|
|
|
# Don't care if the mailer can't send
|
|
config.action_mailer.raise_delivery_errors = false
|
|
|
|
# Print deprecation notices to the Rails logger
|
|
config.active_support.deprecation = :log
|
|
|
|
# Only use best-standards-support built into browsers
|
|
config.action_dispatch.best_standards_support = :builtin
|
|
|
|
# Do not compress assets
|
|
config.assets.compress = false
|
|
config.assets.compile = true
|
|
config.assets.debug = true
|
|
config.assets.digest = false
|
|
|
|
# Devise default url options
|
|
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
|
|
|
|
# DEVELOPMENT S3 settings for Paperclip uploads ON DEVELOPMENT
|
|
config.paperclip_defaults = {
|
|
storage: :s3,
|
|
s3_credentials: {
|
|
bucket: ENV.fetch('S3_BUCKET_NAME', 'notebook-content-uploads'),
|
|
s3_region: ENV.fetch('AWS_REGION', 'us-east-1'),
|
|
access_key_id: ENV.fetch('AWS_ACCESS_KEY_ID', 'test'),
|
|
secret_access_key: ENV.fetch('AWS_SECRET_ACCESS_KEY', 'test')
|
|
}
|
|
}
|
|
|
|
default_url_options[:host] = 'localhost:3000'
|
|
|
|
# Set test-mode Stripe API key
|
|
Stripe.api_key = "sk_test_v37uWbseyPct6PpsfjTa3y1l"
|
|
config.stripe_publishable_key = 'pk_test_eXI4iyJ2gR9UOGJyJERvDlHF'
|
|
|
|
# Uncomment to test error pages
|
|
# config.consider_all_requests_local = false
|
|
|
|
end
|