| 1 | [[PageOutline(2-5, Table of Contents, floated)]] |
| 2 | = Transition Research Patterns = |
| 3 | |
| 4 | The http://patterns.transitionresearchnetwork.org/ is running http://wagn.org/ on PenguinServer, via a reverse Nginx reverse proxy and WEBrick. |
| 5 | |
| 6 | To start and stop the WEBrick server: |
| 7 | |
| 8 | {{{ |
| 9 | sudo -i |
| 10 | su-wagn |
| 11 | wagn-start |
| 12 | wagn-stop |
| 13 | }}} |
| 14 | |
| 15 | See the wagn-start and wagn-stop scripts below. |
| 16 | |
| 17 | == Upgrades == |
| 18 | |
| 19 | See http://wagn.org/upgrading |
| 20 | |
| 21 | The steps are: |
| 22 | |
| 23 | {{{ |
| 24 | sudo -i |
| 25 | su-wagn |
| 26 | git pull |
| 27 | bundle install |
| 28 | rm -rf tmp/cache/* |
| 29 | rake wagn:reset_cache |
| 30 | rake wagn:migrate |
| 31 | }}} |
| 32 | |
| 33 | == Tickets == |
| 34 | |
| 35 | Open Wagn tickets: |
| 36 | |
| 37 | [[TicketQuery(status=accepted|new|assigned|reopened&component=Wagn,order=id,desc=1,format=table,col=summary|owner|reporter)]] |
| 38 | |
| 39 | Closed Wagn tickets: |
| 40 | |
| 41 | [[TicketQuery(status=closed&component=Wagn,order=id,desc=1,format=table,col=summary|owner|reporter)]] |
| 42 | |
| 43 | == Scripts == |
| 44 | |
| 45 | A couple of scripts have been written to start and stop the WEBrick server: |
| 46 | |
| 47 | === wagn-start === |
| 48 | |
| 49 | {{{ |
| 50 | #!/bin/bash |
| 51 | |
| 52 | env STATIC_ASSETS=true bundle exec rails server --binding=127.0.0.1 -d |
| 53 | }}} |
| 54 | |
| 55 | === wagn-stop=== |
| 56 | |
| 57 | {{{ |
| 58 | #!/bin/bash |
| 59 | |
| 60 | kill -INT $(cat /web/wagn/tmp/pids/server.pid) |
| 61 | }}} |
| 62 | |
| 63 | == Install == |
| 64 | |
| 65 | See ticket:561 |