Sha256: f01b09086f1a504c8e7b117628cb08617e8448573eb6c8cc9c449bd7f004c410
Contents?: true
Size: 840 Bytes
Versions: 1
Compression:
Stored size: 840 Bytes
Contents
namespace :ruby_skynet do desc "Start the Ruby Skynet Server.\n Rails Example: rake ruby_skynet:server\n Without Rails: SKYNET_ENV=production SKYNET_CONFIG=config/ruby_skynet rake ruby_skynet:server" task :server => :environment do # Configuration is automatically loaded when running under Rails # so skip it here under Rails unless defined?(Rails) # Environment to use in config file environment = ENV['SKYNET_ENV'] # Environment to use in config file cfg_file = ENV['SKYNET_CONFIG'] # Load the configuration file RubySkynet.configure!(cfg_file, environment) end # Connect to doozer RubySkynet::Registry.service_registry RubySkynet::Server.load_services # Start the server RubySkynet::Server.start RubySkynet::Server.wait_until_server_stops end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_skynet-0.5.0 | lib/ruby_skynet/railties/ruby_skynet.rake |