Passenger
As of February 2017, this document is deprecated. It will not be maintained anymore and will soon be removed.
This document will explain how to install The Lounge on Phusion Passenger. You can find out more about Passenger at their website.
Step 1:
Step 2:
Clone the repository and install The Lounge from source:
git clone https://github.com/thelounge/lounge
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;
server_name irc.me.com;
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>
ServerName irc.me.com
DocumentRoot <directory you cloned The Lounge to>
PassengerRoot <directory you cloned The Lounge to>
PassengerUser lounge
PassengerGroup lounge
PassengerAppRoot <same as previous>
</VirtualHost>
Step 5:
Restart your web server (Apache/NGINX) and check to see if it works!