Giter Site home page Giter Site logo

dt-deploy's Introduction

dt-deploy

Deployment scripts for Data-Tamer.

Setup

Note that '$DT' is the absolute path to dt-deploy.

Make sure that you have working installations of gcc, gmake, Postgres 9.1+, Python 2.5+ and plpython. Also make sure that header files for python and postgres are installed (e.g. libpq-dev, python-dev in Ubuntu).

Clone expertsrc and doit (data-tamer core).

cd $DT/github
git clone https://github.com/alexrpagan/expertsrc.git
git clone https://github.com/alexrpagan/doit.git

Install python packages and binaries.

. $DT/bootstrap.sh

Create databases.

createuser -s expertsrc
createuser -s doit
psql template1
CREATE LANGUAGE plpythonu;
-- set user passwords...
\q
createdb expertsrc -O expertsrc
createdb doit -O doit
psql doit -U doit
CREATE SCHEMA doit;
ALTER USER doit SET search_path to doit;
\q 

Modify site-specific settings. These are found in the META dict in insert-meta.py.

Install site-specific settings.

. $DT/reset_settings.sh

Initialize data tamer database

. $DT/ve/apps/doit/init "doit -U doit"

Initialize expertsrc database

# activate virtualenv
. $DT/ve/bin/activate
cd $DT/ve/apps/expertsrc
python ./www/expertsrc/manage.py syncdb
# follow instructions...
python ./www/expertsrc/manage.py migrate ui
# initialize expertsrc UDFs, tables, and views
. ./sql/init "expertsrc -U expertsrc"
# create fake crowd workers
python ./www/expertsrc/manage.py create_users
# reset market
python ./www/expertsrc/manage.py reset_nr_questions

Start services

supervisord -c $DT/ve/etc/supervisord
# check status...
supervisorctl

dt-deploy's People

Contributors

alexrpagan avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.