Skip to content

Instantly share code, notes, and snippets.

@SaitoWu
Created July 28, 2016 05:43
Show Gist options
  • Save SaitoWu/feee65ff8b1b6e85bf76799d71ea5ba0 to your computer and use it in GitHub Desktop.
Save SaitoWu/feee65ff8b1b6e85bf76799d71ea5ba0 to your computer and use it in GitHub Desktop.
lapis for browser metrics

Browser-Metrics

Metrics for Browser Events and Facts

Install:

# install openssl dependent by luacrypto
brew install openssl

# install luajit
brew install luajit

# install openresty
brew install openresty

# install luarocks
wget http://keplerproject.github.io/luarocks/releases/luarocks-2.3.0.tar.gz
tar -zxvf luarocks-2.3.0.tar.gz
make build
make install

# install lapis
luarocks install moonscript
luarocks install lapis OPENSSL_DIR=/usr/local/opt/openssl/

# Add to bashrc or zshrc
# Added by openresty and lapis
export LAPIS_OPENRESTY=/usr/local/bin/openresty lapis server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment