wiki:WagnWebrick

Version 1 (modified by chris, 3 years ago) (diff)

Archives of WEBrick server info

The https://patterns.transitionresearchnetwork.org/ site now uses Phusion Passenger, see TransitionResearchWagn.

Following is a copy of the information from the TransitionResearchWagn page from when it was using WEBrick.

WEBrick config

This server was running via a Nginx reverse proxy to WEBrick but was switched to Phusion Passenger on ticket:691, the following documentation is left here for historic reasons:

To start and stop the WEBrick server:

sudo -i
su-wagn
wagn-start
wagn-stop

Scripts

A couple of scripts have been written to start and stop the WEBrick server:

wagn-start

#!/bin/bash

env STATIC_ASSETS=true bundle exec rails server --binding=127.0.0.1 -d

wagn-stop

#!/bin/bash

kill -INT $(cat /web/wagn/tmp/pids/server.pid)

Install Notes

See ticket:561

The WEBrick server is set to start following a reboot via this in the wagn users crontab:

@reboot /web/wagn/bin/wagn-start

See the wagn-start and wagn-stop scripts below.