Sha256: bf48bdf0addca80808d2b5fb2dc17e52c081bf1ffa5429b3ca0f272ad3c4aa8e

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

require_relative 'version'
require_relative 'exceptions'
require_relative 'server'

require 'locomotive/mounter'

module Locomotive
  module Steam
    class StandaloneServer < Server

      def initialize(path)
        Locomotive::Common::Logger.setup(path, false)

        # get the reader
        reader = Locomotive::Mounter::Reader::FileSystem.instance
        reader.run!(path: path)
        reader

        Bundler.require 'monkey_patches'
        Bundler.require 'initializers'

        # run the rack app
        super(reader, serve_assets: true)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
locomotivecms_steam-0.1.1 lib/locomotive/steam/standalone_server.rb