Skip to content

Commit

Permalink
Add config.ru file to start via rackup
Browse files Browse the repository at this point in the history
This also allows the server to be deployed to Heroku
  • Loading branch information
nicolas-fricke committed Nov 24, 2017
1 parent 43a02c8 commit 4b69d89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Simple web-app using [`article_json`](https://github.com/Devex/article_json) to

1. Run `bundle install` to install all required dependencies
1. Run `bundle exec ruby bin/setup.rb` and follow the instructions to set up your environment
1. Execute `bundle exec ruby app/server` to start the server
1. Execute `bundle exec rackup -p 4567 config.ru` to start the server
1. You should be able to open the webapp via `http://localhost:4567` in your browser

## Running the tests
Expand Down
2 changes: 2 additions & 0 deletions config.ru
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require_relative 'app/server'
run Sinatra::Application

0 comments on commit 4b69d89

Please sign in to comment.