Proof of concept. Pre-beta.
Tested on OS X 10.7.2 - 10.7.4
sudo port install python-27 py27-virtualenv
sudo easy_install-2.7 -U virtualenv
cd ~/
git clone git://github.com/maizy/WorkSprint.git worksprint
virtualenv-2.7 --distribute --python=/opt/local/bin/python2.7 worksprint
cd worksprint
source bin/activate
pip install -r requirements.txt
**TODO**
Install requiments and driver:
# 1. Install mysql client if you don't have one
#sudo port install mysql5
# 2. and mysql-server if your database will run localy
#sudo port install mysql5-server
# 3. add symlink to mysql_config
ln -s /opt/local/bin/mysql_config5 bin/mysql_config
# 4. check that mysql_config in your PATH
which mysql_config
# 5. install additional requiments
pip install -r requirements_mysql.txt
# 6. you should see message "Successfully installed MySQL-python".
# If you don't write me issue with build logs.
Create mysql database (use utf8_general_ci collation).
Create mysql user for new database.
Create file src/work/settings_db.py
# _*_ coding: utf-8 _*_
def get(settings):
return {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'ws', # database name
'USER': 'ws_user', # username
'PASSWORD': 'o_0', # password
'HOST': '', # mysql hostname (set to empty string for localhost)
'PORT': '', # Set to empty string for default
'OPTIONS' : {
'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED'
}
}
}
python src/work/manage.py syncdb
python src/work/manage.py migrate
deactivate
TODO
Tested on Ubuntu 10.10 Maveric
sudo apt-get install python2.7 python2.7-dev libmysqlclient-dev \
python-setuptools build-essential
sudo easy_install-2.7 -U virtualenv
mkdir -p ~/apps
cd ~/apps
git clone git://github.com/maizy/WorkSprint.git worksprint
virtualenv --distribute --python=/usr/bin/python2.7 worksprint
cd worksprint
source bin/activate
pip install -r requirements.txt
TODO (see OSX instractions)
TODO
deactivate
TODO
TODO (see src/sys-conf-examples/etc/init.d/worksprint
)
TODO (see src/sys-conf-examples/etc/nginx/sites-available/worksprint
)
service worksprint start
servive nginx restart