mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 04:21:36 +00:00
Rails 5 updates + fix gemfile
This commit is contained in:
parent
f0e73d0bbe
commit
782f72c1a3
7 changed files with 61 additions and 9 deletions
2
Gemfile
2
Gemfile
|
@ -44,7 +44,7 @@ gem 'time_difference'
|
||||||
|
|
||||||
# External APIs
|
# External APIs
|
||||||
gem 'google-api-client', '~> 0.10.3'
|
gem 'google-api-client', '~> 0.10.3'
|
||||||
gem 'steam-condenser', g ithub: 'koraktor/steam-condenser-ruby'
|
gem 'steam-condenser', github: 'koraktor/steam-condenser-ruby'
|
||||||
|
|
||||||
# FIXME: Legacy feature shims
|
# FIXME: Legacy feature shims
|
||||||
gem 'rails_autolink'
|
gem 'rails_autolink'
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
require File.expand_path('../boot', __FILE__)
|
require_relative 'boot'
|
||||||
|
|
||||||
require 'rails/all'
|
require 'rails/all'
|
||||||
|
|
||||||
Bundler.require(*Rails.groups(assets: %w(development test)))
|
# Bundler.require(*Rails.groups(assets: %w(development test)))
|
||||||
|
Bundler.require(*Rails.groups)
|
||||||
|
|
||||||
# FIXME
|
# FIXME
|
||||||
ActionController::Parameters.permit_all_parameters = true
|
ActionController::Parameters.permit_all_parameters = true
|
||||||
|
@ -12,6 +13,9 @@ module Ensl
|
||||||
# Custom error pages
|
# Custom error pages
|
||||||
config.exceptions_app = self.routes
|
config.exceptions_app = self.routes
|
||||||
|
|
||||||
|
# Load Rails 5
|
||||||
|
config.load_defaults 5.0
|
||||||
|
|
||||||
# Additional assets
|
# Additional assets
|
||||||
config.assets.precompile += ["themes/*/theme.css", "themes/*/errors.css"]
|
config.assets.precompile += ["themes/*/theme.css", "themes/*/errors.css"]
|
||||||
config.assets.initialize_on_precompile = false
|
config.assets.initialize_on_precompile = false
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
require 'rubygems'
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
||||||
|
|
||||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
require 'bundler/setup' # Set up gems listed in the Gemfile.
|
||||||
|
|
||||||
require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
|
|
||||||
|
|
10
config/cable.yml
Normal file
10
config/cable.yml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
development:
|
||||||
|
adapter: async
|
||||||
|
|
||||||
|
test:
|
||||||
|
adapter: test
|
||||||
|
|
||||||
|
production:
|
||||||
|
adapter: redis
|
||||||
|
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
|
||||||
|
channel_prefix: ensl_production
|
|
@ -1,6 +1,6 @@
|
||||||
require File.expand_path('../application', __FILE__)
|
require_relative 'application'
|
||||||
require 'verification'
|
require 'verification'
|
||||||
require 'exceptions'
|
require 'exceptions'
|
||||||
|
|
||||||
ActiveSupport::Deprecation.silenced = true
|
ActiveSupport::Deprecation.silenced = true
|
||||||
Ensl::Application.initialize!
|
Rails.Application.initialize!
|
||||||
|
|
6
config/spring.rb
Normal file
6
config/spring.rb
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Spring.watch(
|
||||||
|
".ruby-version",
|
||||||
|
".rbenv-vars",
|
||||||
|
"tmp/restart.txt",
|
||||||
|
"tmp/caching-dev.txt"
|
||||||
|
)
|
34
config/storage.yml
Normal file
34
config/storage.yml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
test:
|
||||||
|
service: Disk
|
||||||
|
root: <%= Rails.root.join("tmp/storage") %>
|
||||||
|
|
||||||
|
local:
|
||||||
|
service: Disk
|
||||||
|
root: <%= Rails.root.join("storage") %>
|
||||||
|
|
||||||
|
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
|
||||||
|
# amazon:
|
||||||
|
# service: S3
|
||||||
|
# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
|
||||||
|
# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
|
||||||
|
# region: us-east-1
|
||||||
|
# bucket: your_own_bucket
|
||||||
|
|
||||||
|
# Remember not to checkin your GCS keyfile to a repository
|
||||||
|
# google:
|
||||||
|
# service: GCS
|
||||||
|
# project: your_project
|
||||||
|
# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
|
||||||
|
# bucket: your_own_bucket
|
||||||
|
|
||||||
|
# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
|
||||||
|
# microsoft:
|
||||||
|
# service: AzureStorage
|
||||||
|
# storage_account_name: your_account_name
|
||||||
|
# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
|
||||||
|
# container: your_container_name
|
||||||
|
|
||||||
|
# mirror:
|
||||||
|
# service: Mirror
|
||||||
|
# primary: local
|
||||||
|
# mirrors: [ amazon, google, microsoft ]
|
Loading…
Reference in a new issue