#!/usr/bin/env ruby # set the process name on ps, does not work on OS X due to system limitations $0 = 'Nucleus' Process.setproctitle('Nucleus') if Process.respond_to?(:setproctitle) root_dir = File.join(__dir__, '..') require 'optparse' require 'yaml' require 'thin' NUCLEUS_CONFIG_LOCATION = File.join(root_dir, 'config', 'nucleus_config.rb') options = { env: 'development', logdir: File.join(root_dir, 'log'), config: File.expand_path(NUCLEUS_CONFIG_LOCATION) } optparse = OptionParser.new do |opts| opts.banner = <