Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 779 Bytes

README.md

File metadata and controls

43 lines (27 loc) · 779 Bytes

Sinatra+Heroku+PhantomJS

get links

Heroku

Install Dependencies

% npm install -g phantomjs
% gem install heroku foreman bundler
% bundle install

Run

% foreman start

=> http://localhost:5000

Deploy

push

% heroku create --buildpack git://github.com/ddollar/heroku-buildpack-multi.git
% git push heroku master
% heroku open

config

% heroku config:add LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib:/app/vendor/phantomjs/lib
% heroku config:add PATH=bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin:/app/vendor/phantomjs/bin