Sha256: 593ad20bfc8333c071025fb31f65c349163c911359c4872f2318897ad0e4dcfc

Contents?: true

Size: 524 Bytes

Versions: 4

Compression:

Stored size: 524 Bytes

Contents

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

# load environment
Napa.load_environment

# 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

4 entries across 4 versions & 1 rubygems

Version Path
napa-0.5.0 lib/napa/cli/templates/new/app.rb
napa-0.4.3 lib/napa/cli/templates/new/app.rb
napa-0.4.1 lib/napa/generators/templates/scaffold/app.rb
napa-0.4.0 lib/napa/generators/templates/scaffold/app.rb