Sha256: 7ceea32ec2c0f07cc14053d4a9ae0d3a97c65fbc28065af481c8261ac9a52691
Contents?: true
Size: 656 Bytes
Versions: 1
Compression:
Stored size: 656 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'bundler/setup' Bundler.require require 'thin' require 'common' require_relative '../lib/steam' require_relative '../lib/locomotive/steam/server' require_relative '../lib/locomotive/steam/initializers' path = ENV['SITE_PATH'] || File.join(File.expand_path(File.dirname(__FILE__)), '../spec/fixtures/default') reader = Locomotive::Mounter::Reader::FileSystem.instance reader.run!(path: path) app = Locomotive::Steam::Server.new(reader, { serve_assets: true }) server = Thin::Server.new('localhost', '3333', app) server.threaded = true Locomotive::Common::Logger.info 'Server started...' server.start
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
locomotivecms_steam-0.1.1 | example/server.rb |