installation 1.7 and earlier
Option A: Quick Start
recommended for new/trial sites
You will need: ruby (1.8.6+) and either Postgres or Mysql, and the appropriate ruby gems for your database.
- Download the latest stable release from RubyForge
- untar or unzip the package
- install the dependencies
bundle install --without test hosting sqlite postgres #default command for mysql installs
see using bundler with Wagn for more details / customization / troubleshooting - configure config/database.yml for your database. (defaults work with default mysql install)
-
rake wagn:create
-
./script/server
Option B: Long Haul
recommended for active/production sites
We recommend installing via git for sites in active use in order to get access to the most recent code and to make upgrades easier.
You will need: git, bundler, and either Postgres or Mysql.
- Get the source
git clone git://github.com/wagn/wagn.git
- Get the plugins
cd wagn # move to the wagn directory git submodule update --init
- Get the gems...
- Install bundler gem install bundler
- Use bundler to install / update your other gems. bundle install #WAIT! This is the basic
- Configure your database
cp config/sample_database.yml config/database.yml # copy sample config file
To configure your database, you will need to edit the config/database.yml file. The defaults are set to use MySQL, but Wagn has been well ... - Generate your data
rake wagn:create
- Start your server
To fire up the default, built-in WEBrick server, just run:
./script/server
...and point your browser to http://localhost:3000 (unless otherwise configured).
See rails documentation to run your wagn on other servers.
