Last active
January 29, 2018 02:02
-
-
Save Iqlaas/eaca80744ff4d2dab7628372abb1f43c to your computer and use it in GitHub Desktop.
application.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
equire File.expand_path('../boot', __FILE__) | |
require 'rails/all' | |
Bundler.require(*Rails.groups) | |
# ENVied.require(*ENV['ENVIED_GROUPS'] || Rails.groups) | |
module Name | |
class Application < Rails::Application | |
config.api_only = false | |
config.action_mailer.asset_host = ENV['HOST'] | |
config.paths.add File.join('app', 'api'), glob: File.join('**', '*.rb') | |
config.autoload_paths += Dir[Rails.root.join('app', 'api', '*')] | |
config.autoload_paths += Dir[Rails.root.join('app', 'services', '*')] | |
config.autoload_paths += %W(#{config.root}/app) | |
config.autoload_paths += %W(#{Rails.root}/lib) | |
config.active_job.queue_adapter = :sidekiq | |
config.time_zone = 'Kuala Lumpur' | |
config.assets.precompile += [ 'pages.css', 'tables.css', 'uielements.css', 'widgets.css', 'commerce.css' ] | |
config.assets.precompile += [ 'pages.js', 'tables.js', 'uielements.js', 'widgets.js', 'commerce.js', 'metrics.js', 'landing.js' ] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment