-
Notifications
You must be signed in to change notification settings - Fork 3
Installation
Webistrano itself is a Ruby on Rails application that includes an edge version of Rails and all needed dependencies like Capistrano or Net::SSH. The only required dependencies are Ruby >= 1.8.4, Rake, and a SQL database.
Copy config/webistrano_config.rb.sample to config/webistrano_config.rb and edit appropriatly.
In this configuration file you can set the mail settings of Webistrano.
Copy config/database.yml.sample to config/database.yml and edit to resemble your setting.
You need at least the production database. The others are optional entries for development and testing.
Create a {MySQL|PostgreSQL|SQLite} database, e.g. for MySQL:
# mysql
bc. mysql> create database webistrano
Then create the database structure with Rake:
# cd webistrano
bc. # RAILS_ENV=production rake db:migrate
# cd webistrano
bc. # ruby script/server -d -p 3000 -e production
Webistrano is then available at http://host:3000/ The default user is admin, the password is admin.
Please change the password after the first login.
If you started Webistrano with the script/server command you can just send it a KILL signal to stop it.
A much nicer way of controlling Webistrano is using Mongrel:
Install Mongrel:
# sudo gem install mongrel
Start:
# sudo gem install mongrel
bc. # cd /webistrano/home/path
bc. # mongrel_rails start -e production -d -p 3000
Stop:
# cd /webistrano/home/path
bc. # mongrel_rails stop
Restart:
# cd /webistrano/home/path
bc. # mongrel_rails restart