Skip to content

Commit

Permalink
Heroku infra for playground
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Nov 5, 2019
1 parent 7df1414 commit 519d875
Show file tree
Hide file tree
Showing 6 changed files with 794 additions and 3 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/node_modules/
/lib/
/pkg/
/playground/
/test/

/Gemfile*
Expand Down
1 change: 1 addition & 0 deletions playground/Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: bundle exec rackup -p $PORT
4 changes: 1 addition & 3 deletions playground/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
require 'bundler/setup'
require 'sinatra'

require_relative '../src/ripper'
require_relative 'ripper'

class App < Sinatra::Base
get '/' do
Expand All @@ -25,5 +25,3 @@ class App < Sinatra::Base
end
end
end

App.run!
5 changes: 5 additions & 0 deletions playground/config.ru
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

require_relative 'app'

run App
10 changes: 10 additions & 0 deletions playground/deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

diff src/ripper.rb playground/ripper.rb > /dev/null

if [ $? -eq 1 ]; then
echo "playground/ripper.rb out of sync with src/ripper.rb"
exit 1
fi

git subtree push --prefix playground heroku master
Loading

0 comments on commit 519d875

Please sign in to comment.