This document will explain how to install The Lounge on Phusion Passenger. You can find out more about Passenger at their website.

Step 1:

Install Passenger.

Step 2:

Clone the repository and install The Lounge from source:

git clone
cd lounge
npm install
NODE_ENV=production npm run build

Step 3:

Add a link from index.js to app.js (Passenger requires an app.js file):

ln index.js app.js

Step 4:

Add the server configuration to NGINX (example, change the user/group/server_name to something appropriate):

server {
        listen 80;
        listen 443 ssl;
        root <directory you cloned The Lounge to>;

        ssl_certificate <SSL cert>;
        ssl_certificate_key <SSL key>;

        passenger_enabled on;

        passenger_user lounge;
        passenger_group lounge;
        passenger_nodejs /usr/bin/node;
        passenger_app_root <same as root>;

Or Apache:

<VirtualHost *:80>
    DocumentRoot <directory you cloned The Lounge to>
    PassengerRoot <directory you cloned The Lounge to>
    PassengerUser lounge
    PassengerGroup lounge
    PassengerAppRoot <same as previous>

Step 5:

Restart your web server (Apache/NGINX) and check to see if it works!