Sha256: 6ccb12cdaee9516787ff59ea5ede7ffec8caefe5461e3a69ef75e2bbbc9bb63c
Contents?: true
Size: 892 Bytes
Versions: 3
Compression:
Stored size: 892 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 services registry RubySkynet.services RubySkynet::Server.load_services # Start the server RubySkynet::Server.start at_exit do RubySkynet::Server.stop end RubySkynet::Server.wait_until_server_stops end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby_skynet-1.1.1 | lib/ruby_skynet/railties/ruby_skynet.rake |
ruby_skynet-1.1.0 | lib/ruby_skynet/railties/ruby_skynet.rake |
ruby_skynet-1.0.0 | lib/ruby_skynet/railties/ruby_skynet.rake |