Running in development mode
cd leap_website
- rails server
+ rails server thin
Console examples
rake doc:app
-Running in production (with webrick)
+Running in production (with thin)
bundle exec rake assets:precompile
- RAILS_ENV=production rails server
+ RAILS_ENV=production rails server thin
Modifying pages
Install Passenger (mod_rack)
sudo apt-get install libapache2-mod-passenger
-
+
Configure Apache
-
+
<VirtualHost *:80>
ServerName leap.se
DocumentRoot /home/leap/leap_website/public
Development
==============================
-If you change a sass source file, you must run:
+This app uses precompiled assets.
+
+If you change a sass source file, you must run this before deploying:
rake assets:precompile RAILS_ENV=production
-This app uses precompiled assets.
+To make the stylesheets autogenerate again in development mode, run this:
+
+ rake assets:clean
Development Notes
Search
---------------------------
-Maybe we should add search.
+Maybe we should add search.
This appears to be the most appropriate search tool to use for this static webapp: http://xapian.org/docs/bindings/ruby/