Skip to content

Instantly share code, notes, and snippets.

@jhbabon
Created August 28, 2013 09:34
Show Gist options
  • Save jhbabon/6364136 to your computer and use it in GitHub Desktop.
Save jhbabon/6364136 to your computer and use it in GitHub Desktop.
Run Izanami app showing the configuration variables
#!/usr/bin/env ruby
require 'izanami/app'
$stdout.puts '>>> Izanami configuration'
ENV.each do |var, value|
if var.to_s.match(/\AIZANAMI_/)
$stdout.puts ">>> #{var}=#{value}"
end
end
port = ENV['IZANAMI_PORT'] || 4567
Izanami::App.run!(port: port)
# -*- mode: ruby -*-
# vi: set ft=ruby :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment