Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tmp

  • Loading branch information...
commit 55c46bbcc20e8f52d6759e63ed33e6e6058eeb41 1 parent 667146a
Tristan Sloughter authored
View
2  .buildpacks
@@ -0,0 +1,2 @@
+https://github.com/heroku/heroku-buildpack-ruby.git
+https://github.com/tsloughter/heroku-buildpack-erlang-dialyzer.git
View
3  Gemfile
@@ -0,0 +1,3 @@
+source :rubygems
+gem 'sinatra', '1.1.0'
+gem 'thin'
View
31 Makefile
@@ -0,0 +1,31 @@
+# -*- mode: Makefile; fill-column: 80; comment-column: 75; -*-
+
+ERL = $(shell which erl)
+
+ERLFLAGS= -pa $(CURDIR)/.eunit -pa $(CURDIR)/ebin -pa $(CURDIR)/*/ebin
+
+REBAR=./rebar
+
+EPUBNUB_PLT=$(CURDIR)/.depsolver_plt
+
+.PHONY: dialyzer typer clean distclean
+
+compile:
+ @./rebar get-deps compile
+
+$(EPUBNUB_PLT):
+ dialyzer --output_plt $(EPUBNUB_PLT) --build_plt \
+ --apps erts kernel stdlib crypto public_key -r deps --fullpath
+
+dialyzer: $(EPUBNUB_PLT)
+ dialyzer --plt $(EPUBNUB_PLT) -pa deps/* --src src
+
+typer: $(EPUBNUB_PLT)
+ typer --plt $(EPUBNUB_PLT) -r ./src
+
+clean:
+ $(REBAR) clean
+
+distclean: clean
+ rm $(EPUBNUB_PLT)
+ rm -rvf $(CURDIR)/deps/*
View
1  Procfile
@@ -0,0 +1 @@
+web: bundle exec ruby serve.rb -p $PORT
View
2  rebar.config
@@ -1,4 +1,4 @@
{deps, [
- {hackney, "0.2.0", {git, "git://github.com/benoitc/hackney.git", {tag, "0.2.0"}}}
+ {hackney, "0.3.0", {git, "git://github.com/benoitc/hackney.git", {tag, "0.3.0"}}}
,{jsx, "1.3.1", {git, "git://github.com/talentdeficit/jsx.git", {tag, "v1.3.1"}}}
]}.
View
5 serve.rb
@@ -0,0 +1,5 @@
+require 'sinatra'
+
+get '/' do
+ "Hello World!"
+end
Please sign in to comment.
Something went wrong with that request. Please try again.