RACKUP(1)

πŸ“¦ version 2.2.22, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– RACKUP(1) πŸ’–

okay so bestie, welcome to the rackup manual page β€” lowercase name, main character energy, one (1) whole section of the manual. let's get into it 🫢


✨ NAME ✨

rackup

rackup(1) -- An utility for run Rack-based applications


🌸 SYNOPSIS 🌸

rackup [ruby options] [rack options] [rackup config]

like. that's the whole vibe. ruby options, then rack options, then optionally the config file. in that order. no notes πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Rackup is a useful tool for running Rack applications, which uses the Rack::Builder DSL to configure middleware and build up applications easily.

rackup automatically figures out the environment it is run in, and runs your application as FastCGI, CGI, or standalone with Mongrel or WEBrick -all from the same configuration.

not me explaining that the same configuration handles all of those. it's giving versatility. it's giving slay. 😭

πŸ’… OPTIONS πŸ’…

πŸ’Ž Ruby options:

  • -e, --eval [LINE] β€” evaluate a LINE of code
  • -d, --debug β€” set debugging flags (set $DEBUG to true)
  • -w, --warn β€” turn warnings on for your script
  • -I, --include [PATH] β€” specify $LOAD_PATH (may be used more than once, bestie, so go off)
  • -r, --require [LIBRARY] β€” require the library, before executing your script

πŸŽ€ Rack options:

  • -s, --server [SERVER] β€” serve using SERVER (webrick/mongrel)
  • -o, --host [HOST] β€” listen on HOST (default: 0.0.0.0)
  • -p, --port [PORT] β€” use PORT (default: 9292)
  • -E, --env [ENVIRONMENT] β€” use ENVIRONMENT for defaults (default: development)
  • -D, --daemonize β€” run daemonized in the background
  • -P, --pid [FILE] β€” file to store PID (default: rack.pid)

🌈 Common options:

  • -h, --help β€” Show the help message
  • --version β€” Show version

πŸ”₯ EXAMPLES πŸ”₯

This is a simple example on how to start an application based on Rack with rackup:

$ rackup -Ilib blog/config.ru

[2010-12-10 15:01:11] INFO WEBrick 1.3.1

[2010-12-10 15:01:11] INFO ruby 1.9.2 (2010-08-18) [x86_64-linux]

[2010-12-10 15:01:11] INFO WEBrick::HTTPServer#start: pid=4496 port=9292

look at those log lines. pid=4496, port=9292. iconic. no cap, that's a whole server starting up right there 🌟


πŸ‘‘ AUTHORS πŸ‘‘

Copyright (C) 2007, 2008, 2009, 2010 Christian Neukirchen <http://purl.org/net/chneukirchen>

For a complete list of authors and contributors to the project, please take a look here https://github.com/rack/rack/contributors

This manual page was written by Ermenegildo Fiorito fiorito.g@gmail.com for the Debian Project


πŸ’œ SEE ALSO πŸ’œ

ruby(1) http://rack.rubyforge.org


and that's the whole page, bestie!! ✨ this came to you from the RACKUP(1) manual, dated December 2010 β€” shoutout to that date and to the RACKUP(1) footer energy. go run something. periodt. πŸ’–πŸŽ€πŸ¦‹πŸŒΈπŸ“

πŸ“¦ where this page comes from