Questions tagged [rackup]

48 questions
13
votes
2 answers

Passing options to rackup via a Sinatra application

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 by requiring 'sinatra/base' and writing a class that…
Robert Audi
  • 7,199
  • 8
  • 41
  • 65
12
votes
2 answers

Looking for rack app structure and config.ru specs?

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 contents. In the Java world there's a clear…
Oleg Mikheev
  • 16,026
  • 12
  • 69
  • 93
12
votes
4 answers

Can't launch simple Sinatra app using rackup and jRuby (no response from web server)

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 file 'app.rb': require 'rubygems' require…
Andy Jones
  • 1,066
  • 1
  • 9
  • 19
8
votes
1 answer

Sinatra error (bundler: failed to load command: rackup)

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 my Procfile, without success. Here are the contents of…
fullstackplus
  • 951
  • 1
  • 14
  • 27
7
votes
2 answers

cannot load such file -- rack/handler/puma

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::Application So when I now use rackup I get this…
Sir l33tname
  • 3,329
  • 4
  • 33
  • 43
7
votes
1 answer

Sinatra via rackup does not like inline templates

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 :environment, ENV['RACK_ENV'].to_sym disable :run,…
berkes
  • 25,081
  • 21
  • 107
  • 188
6
votes
2 answers

rackup: command not found

I am currently working on a project that requires the rackup command on ubuntu 11.04, but I am getting an error: -bash: rackup: command not found. I have installed both the rails and rack ruby gems. Any help with this would be awesome!
3
votes
1 answer

Sinatra with Puma gives twice the output in the terminal

I have added Puma to my sinatra app, and now I get two lines of output for requests in the terminal. I've checked and it isn't actually calling the code twice, and I'm guessing that maybe Puma is outputting the request information along with…
Louis Sayers
  • 2,135
  • 3
  • 28
  • 49
3
votes
1 answer

rackup mounting apps vs rails mounting for sinatra apps

I was wondering which could be a better way of mounting different apps for ruby . I have 2 sinatra apps and one rails app . One way is to use rails as base and mount the sinatra apps using the routes.rb (within…
Gaurav Shah
  • 4,935
  • 6
  • 38
  • 69
2
votes
1 answer

Rackup with HTTPS support

I've found this question, which doesn't really solve my problem but at least maybe lets me phrase my question the right way. I have a simple Camping app that I launch via rackup. I'd like to be able to test the app over a secure connection…
Coderer
  • 21,290
  • 22
  • 71
  • 124
2
votes
1 answer

How do I create a config.ru file and a Rakefile?

I know you create a Gemfile from the command line by typing "bundle init." But how do you create config.ru file and a Rakefile?
2
votes
2 answers

Why is Unicorn looking for rackup file (config.ru) even though I am specifying a config?

I am simply SSH'd into my Ubuntu 14.04 server instance, trying to bootstrap my Unicorn server for a Rails 4.2 app. cd /home/sh0/app/current/api bundle exec unicorn -E production -c /home/sh0/app/current/api/config/unicorn.rb But it…
Charney Kaye
  • 3,030
  • 4
  • 29
  • 41
2
votes
0 answers

Environment variables with Rackup, Thin, and Oracle

I've written a server using Sinatra that accesses an Oracle database using ActiveRecord (though this is not a Rails app). I wrote it in Sinatra's "classic" style and previously started the server like this: bundle exec ruby bin/server.rb I also…
polm23
  • 7,082
  • 6
  • 25
  • 45
2
votes
0 answers

How to kill Rackup process in background?

I managed to host the RedMine using the Rackup and Puma by running the following code in the CMD. rackup -I "script/rails" -s "puma" -O "-q" -E "production" But this will keep the CMD still up and running. Thus, I created a windows service to run a…
tctham
  • 213
  • 2
  • 9
1
vote
0 answers

Heroku process starts missing rackup

I have a Ruby application I am trying to get running on Heroku. I have been following the "Learn enough Ruby to be dangerous" tutorial using a AWS Cloud9 environment. Everything works according to plan except when I push the application to Heroku.…
1
2 3 4