Installing: Webiva

Next clone the Webiva repository:

git clone git://github.com/cykod/Webiva.git
cd Webiva/

OS X

You’ll need to remove the mysql and nokogiri gems in Webiva from vendor/gems as they won’t compile correctly on an Mac

 rm -rf vendor/gems/mysql-* vendor/gems/nokogiri-1.3.1

Linux

Next make sure memcached has started (It wasn’t started correctly after install on my test systems):

sudo /etc/init.d/memcached restart

All Operating Systems

Now run the quick install script to set up the master database and the first domain database:

./script/quick_install.rb

You should then be able to run the webbrick server and access you website from port 3000:

./script/server

(You may need to edit your hosts file so that you can pull up iniital website that you created)

Then start up the background processes:

./script/background.rb start

Note: If you are running in development mode, you’ll need to have your RAILS_ENV variable set or explicitly start the background process in development with:

RAILS_ENV=development ./script/background.rb start