Nginx/Passenger: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 93: Line 93:
|valign='top' style='width:50%'|
|valign='top' style='width:50%'|
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
lxc launch ubuntu:24.04 passenger
lxc launch ubuntu:24.04 passenger   && sleep 5
lxc snapshot passenger ubuntu:24.04
lxc snapshot passenger ubuntu:24.04 && sleep 1
lxc restore  passenger ubuntu:24.04
lxc restore  passenger ubuntu:24.04 && sleep 5
lxc exec    passenger -- bash
lxc exec    passenger -- bash
</syntaxhighlight>
</syntaxhighlight>

Revision as of 15:51, 6 February 2026

cat <<'EXE' | sudo bash
apt-get update;echo
apt-get install -y nginx
nginx -v;echo
apt-get clean
EXE

Diagram

Passenger » Why

Passenger » Why

Feature Nginx + Passenger Nginx + Puma
Ease of Setup High (Single config file) Medium (Need to manage Puma service)
Process Management Automatic (Spawns/restarts apps) Manual (Requires Systemd or Monit)
Memory Management Excellent (Auto-kills bloated processes) Good (Manual tuning required)
Multi-Language Supports Ruby, Python, Node.js Ruby only

Passenger » How

Passenger » How

Passenger » Install

lxc launch ubuntu:24.04 passenger   && sleep 5
lxc snapshot passenger ubuntu:24.04 && sleep 1
lxc restore  passenger ubuntu:24.04 && sleep 5
lxc exec     passenger -- bash

References

References