Sha256: 243e7c2f17bcb1fbaccc2d330015ae2a3acee8b135a6b2483cee0ffa67d59f47

Contents?: true

Size: 694 Bytes

Versions: 3

Compression:

Stored size: 694 Bytes

Contents

require "grpc"
require "yaml"
require "erb"
require "logger"
require "zeitwerk"
require "dotenv/load"
require "google/cloud/firestore"
require "./app"

ENV["SOULS_ENV"] ||= "development"

# NoSQL Conf
# YAML.safe_load(ERB.new(File.new("./config/mongoid.yml").read).result)

## SQL Conf
# db_conf = YAML.safe_load(ERB.new(File.read("./config/database.yml")).result, [], [], true)
# ActiveRecord::Base.establish_connection(db_conf[ENV["RACK_ENV"]])

loader = Zeitwerk::Loader.new
loader.push_dir("#{Dir.pwd}/app/controllers")
loader.push_dir("#{Dir.pwd}/app/services")
loader.do_not_eager_load("#{Dir.pwd}/app/services")
loader.collapse("#{__dir__}/app/services")
loader.setup

loader.eager_load

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
souls-0.8.3 souls_service-0.0.8/app.rb
souls-0.8.2 souls_service-0.0.8/app.rb
souls-0.8.1 souls_service-0.0.8/app.rb