rackup Questions
4
Solved
I've got a Sinatra "hello world" app that I am trying to run using jRuby. It works when I run the app, but not when I run rackup. Can anyone tell me what is going on here?
Here's the app, in a fil...
1
When deploying a modular Sinatra app to Heroku, I keep getting this error:
bundler: failed to load command: rackup (/app/vendor/bundle/ruby/2.4.0/bin/rackup)
I've tried tweaking my config.ru and ...
2
Solved
My setup and the error
I get an error when I start my Sinatra application with rackup and puma. My config.ru file looks like this:
#\ -s puma
require './controller/main.rb'
run Sinatra::Applicati...
2
Solved
I'm new to ruby, learning Sinatra. While creating a Sinatra site by requiring 'sinatra' and setting up the routes directly under is pretty easy and rather well documented, creating an application b...
1
Solved
When calling sinatra itself, $ ruby tubemp.rb works. But via rackup it does not. The application, somehow cannot find the inline templates.
#config.ru
require 'rubygems'
require 'sinatra'
set :en...
2
Solved
2
Solved
This will probably make me look lame but still -- I can't find any formal description for either a typical rack application structure (folders/files, like public, config.ru), or the config.ru file ...
1
© 2022 - 2024 — McMap. All rights reserved.