envy

Version, currently master branch1 version
  • master branchlatestDec 17, 2018

github.com/whalesalad/envy

Envy is a debug server that will print its' own environment variables.

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  envy:
    github: whalesalad/envy
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.27.0
License
MIT
Author
Michael Whalen
Target
  • envy from src/envy.cr

Dependencies

This version declares no dependencies.

README

Envy

Envy intends to be a very straightforward server that will print its' own environment variables.

I built this to have a quick-n-dirty binary I can run inside of the Firecracker microVM to test certain things.

Expect it to grow and gain more functionality, but it will always be a simple json loopback-style debug server.

Example Output

{
  "environment": {
    "HOME": "/Users/michael",
    "PWD": "/Users/michael/Code/envy",
    "RACK_ENV": "development",
    "RAILS_ENV": "development",
    "SHELL": "/bin/zsh",
  },
  "uname": "Darwin loki 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64",
  "hostname": "loki"
}

Building & Running

First we build:

shard build

Then we run:

./bin/envy

The PORT environment variable is used to determine where it binds, defaulting to 8080