Wagn is defaulting to production mode as of Wagn 1.8. If you want to modify wagn code, you'll want to use development mode instead.
You'll also need to install several more gems. Go to .bundle/config and remove, at a minimum, "development" and "assets" from the "without" list.
- In general, you can use `env RAILS_ENV=development` before most commands.
- You can change back to using "development" as your default environment by commenting out the first line of config/boot.rb:
#ENV['RAILS_ENV'] ||= 'production'
(Note that it will remained commented in all git branches but master and stable).
1. Install the gem
gem install decko
Watch carefully for errors!
2. Create your new decko
Here we'll create one named "mysite":decko new mysite
3. Create / seed your database
Edit the config/database.yml file as necessary for details see Database Configuration.
Then run...cd mysite
..to create and seed the database
4. Start your server
To fire up the default, built-in WEBrick server, just run:decko 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:
Wagn in production for more advanced topics.