Permalink
Browse files

tmp

  • Loading branch information...
Tristan Sloughter
Tristan Sloughter committed Nov 20, 2012
1 parent 667146a commit 55c46bbcc20e8f52d6759e63ed33e6e6058eeb41
Showing with 43 additions and 1 deletion.
  1. +2 −0 .buildpacks
  2. +3 −0 Gemfile
  3. +31 −0 Makefile
  4. +1 −0 Procfile
  5. +1 −1 rebar.config
  6. +5 −0 serve.rb
View
@@ -0,0 +1,2 @@
+https://github.com/heroku/heroku-buildpack-ruby.git
+https://github.com/tsloughter/heroku-buildpack-erlang-dialyzer.git
View
@@ -0,0 +1,3 @@
+source :rubygems
+gem 'sinatra', '1.1.0'
+gem 'thin'
View
@@ -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
@@ -0,0 +1 @@
+web: bundle exec ruby serve.rb -p $PORT
View
@@ -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
@@ -0,0 +1,5 @@
+require 'sinatra'
+
+get '/' do
+ "Hello World!"
+end

0 comments on commit 55c46bb

Please sign in to comment.