Pyjobs_web require some OS dependencies (to build project python libs), for a debian-like you can install them with apt-get:
apt-get install python python-dev python-pip git libpq-dev libxml2-dev libxslt1-dev libffi-dev python-pip virtualenv
Note: For production environment, create production.ini configuration file from copying development.ini and replace development.ini by production.ini in following instructions.
Clone the project:
git clone https://github.com/pyjobs/web.git
Move to web/pyjobs_web directory:
cd pyjobs_web/pyjobs_web
Install python dependencies:
pip install -r requirements.txt
Install pyjobsweb using the setup.py script:
python setup.py develop
Update config according to your database in pyjobs_web/pyjobs_web/development.ini. Import lines to update are:
debug: Think to switch atFalseif you are in production environment.session.secretsession.validate_keysqlalchemy.url: Update it according to your database (MySQL, PostgreSQL, SQLite, etc.).
Create the project database for any model classes defined::
$ gearbox setup-app -c development.ini
Start the paste http server::
$ gearbox serve -c development.ini
While developing you may want the server to reload after changes in package files (or its dependencies) are saved. This can be achieved easily by adding the --reload option::
$ gearbox serve -c development.ini --reload --debug
Then you are ready to go.
## Update job database with crawls
Run gearbox crawl command. It will be run PyJobs Crawlers and feed PyJobs Web database.
