Production port is 31415.
Start by cloning the project using git.
git clone git@github.com:linjekoll/provider-server-ruby.git
Navigate to the downloaded folder and run bundler.
cd provider-server-ruby && bundle install
bundle exec ruby server.rb -p 31415
bundle exec shotgun start.ru -p 31415
Using shotgun will cause the server to restart everytime server.rb is changed.
... or start the server using foreman.
foreman start
Beanstalkd needs to be started manually using beanstalkd.
data = {
this: "could",
be: "any",
anything: nil
}.to_json
RestClient.get("http://localhost:31415/", data)
- 400 Wrong arguments, in most cases invalid JSON data.
- 200 Everything went okey.
- 500 Internal problems.