Sha256: 78f436decc2d9a241e6944702aee93c451cbf4d3da65e7913b14b836b5932708
Contents?: true
Size: 610 Bytes
Versions: 1
Compression:
Stored size: 610 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH << File.expand_path(File.dirname(__FILE__) + '/../lib') require '<%= @name %>' <% if @active_record %> # Change the following to reflect your database settings ActiveRecord::Base.establish_connection( adapter: <%= "'#{@engine}'" %>, host: ENV[:DB_HOST], database: ENV[:DB_NAME], username: ENV[:DB_USERNAME], password: ENV[:DB_PASSWORD] ) <% end %> service_config = MicroRb::ServiceConfiguration(name: :example_service) service_config.add_handler(<%= @class_name %>::ExampleHandler.new) server = MicroRb::Servers::Web.new(service_config) server.start!
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
micro-rb-0.1.0.rc3 | templates/bin/app |