This is the simple installation guide. To view a more detailed one please check out the README file. This guide is made for Unix, but Solace supports Windows as well! Look in the README file for directions.
Fetching and extrating Solace
You can fetch Solace from PyPi.
$ wget http://pypi.python.org/packages/source/P/Plurk_Solace/Plurk_Solace-0.1.tar.gz $ md5sum Plurk_Solace-0.1.tar.gz $ tar -xvf Plurk_Solace-0.1.tar.gz
Notice: Be sure the md5 sum is f1a44d69f173291ba31b906fbf101400.
Mercurial repository (optional)
You can also check out our Mercurial repository.
hg clone http://bitbucket.org/plurk/solace
Setting up the environment
Be sure that you have virtualenv installed:
sudo easy_install virtualenv
Go into the Plurk_Solace-0.1 directory and do:
$ virtualenv env
Notice: There is a bug in virtualenv on Snow Leopard.
Installing the needed stuff
Make sure you have setuptools and GCC/make etc. installed. This only works for Ubuntu/Debian, fetch these manually if you are not running Ubuntu/Debian:
sudo apt-get install build-essential python-setuptools python-dev
Run following to install dependencies of Solace:
$ . env/bin/activate $ python setup.py develop
Configuration and running a test server
Create a new file called config.py and insert your database configuration:
DATABASE_URI = 'mysql://root@localhost/solace' SECRET_KEY = 'is a dog, wuf wuf'
Solace supports PostgreSQL, SQLite and MySQL.
Create the database structure:
SOLACE_SETTINGS_FILE=config.py python setup.py reset
Launch a WSGI server on localhost:3000:
SOLACE_SETTINGS_FILE=config.py python setup.py runserver
Notice: For additional and more detailed information check out following:
