Custom Rack Mount

This example demonstrates how to ammend the web server so that it also serves any custom rack app.

Code

config/jobly.rb
app/my_Server.rb
require_relative '../app/my_server'
Jobly.configure do |config|
config.mounts = { "/my" => MyServer }
end

Commands to Try

cd examples/custom-rack-mount
# Start the server
jobly server
# Call your custom app
curl http://localhost:3000/my