1 About this web application
2 ============================
4 This repository is DEPRECATED, move on to https://0xacab.org/leap/leap_se !
6 The LEAP public website is lightweight rails application that just mostly
7 serves up (semi) static templates.
9 No databases are used or harmed in the making of this website.
11 The goal with this web app is to be as flexible and lightweight as possible,
12 and to support stellar localization.
14 There are numerous ruby tools to build static websites, but I found them to
15 not be good for localization and to be too inflexible.
19 sudo apt-get install ruby ruby-dev rubygems
21 git clone git://leap.se/leap_website
27 sudo apt-get install python-docutils # for ReStructuredText support
29 Running in development mode
37 rails console production
44 Running in production (with thin)
46 bundle exec rake assets:precompile
47 RAILS_ENV=production rails server thin
51 ======================================
53 Edit the HAML files found in leap_website/pages
57 ======================================
62 rsync -a leap_website server:~
65 bundle install --deployment
75 ------------------------
77 Install Passenger (mod_rack)
79 sudo apt-get install libapache2-mod-passenger
85 DocumentRoot /home/leap/leap_website/public
86 <Directory /home/leap/leap_website/public>
94 ==============================
96 This app uses precompiled assets.
98 If you change a sass source file, you must run this before deploying:
100 rake assets:precompile RAILS_ENV=production
102 To make the stylesheets autogenerate again in development mode, run this:
108 =============================
111 ---------------------------
113 Maybe we should add search.
115 This appears to be the most appropriate search tool to use for this static webapp: http://xapian.org/docs/bindings/ruby/
117 Some notes on how flask does a similar thing::
118 * http://librelist.com/browser//flask/2012/3/21/maillinglist-archive-searchable/#ff1d34246a16845c410d2c9a411f5829
119 * https://github.com/mitsuhiko/flask/blob/website/flask_website/search.py
120 * https://github.com/mitsuhiko/flask/blob/website/flask_website/views/mailinglist.py
122 pure ruby, for ar: https://github.com/dougal/acts_as_indexed/
124 Other static CMS in ruby
125 -----------------------------
127 * http://nestacms.com/
128 * https://github.com/gma/nesta
129 * https://github.com/gma/nesta-rails
130 * https://github.com/quickleft/regulate -- git, engine, cms, rails