Sign up Sign in Samples Blog contact support

1. Install the gem

gem install wagn

Watch carefully for errors! 


2. Create your new wagn application

Here we'll create one named "mysite":

 wagn new mysite


3. Create / Seed your database

Edit the config/database.yml file as necessary for details see Database Configuration.


Then run...

cd mysite 
wagn seed create and seed the database


4. Start your server

To fire up the default, built-in WEBrick server, just run:

wagn server

...and point your browser to http://localhost:3000 (unless otherwise configured).


WEBrick is great for a quick test run, however, for production, you will not want to use the built-in Webrick server; you'll want to use Nginx or Apache:

Installing a Web Server

Wagn in production for more advanced topics.