Sha256: 813fee419c482b851b764180711b550d798c71a476bd4fe24b509cb9a1125373

Contents?: true

Size: 553 Bytes

Versions: 1

Compression:

Stored size: 553 Bytes

Contents

# load bundler
require 'bundler/setup'
Bundler.setup(:default)
require 'napa/setup'
Bundler.require(:default, Napa.env.to_sym)
require 'napa'

# load environment
Dotenv.load(Napa.env.test? ? '.env.test' : '.env')

# autoload initalizers
Dir['./config/initializers/**/*.rb'].map { |file| require file }

# load middleware configs
Dir['./config/middleware/**/*.rb'].map { |file| require file }

# autoload app
relative_load_paths = %w(app/apis app/representers app/models app/workers lib)
ActiveSupport::Dependencies.autoload_paths += relative_load_paths

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
napa-0.3.0 lib/napa/generators/templates/scaffold/app.rb