Skip to content

buildout for crate.io, installs redis, postgresql, flower, elasticsearch. Also reactivates the trigger_bulk_sync command

Notifications You must be signed in to change notification settings

InQuant/buildout_crate.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This buildout installs crate.io webservice with all dependencies and components needed. It's based on the crate.io project. crate.io and crate.pypi are forked due to some enhancments and compatibility reasons. It also installs supervisor to monitor the running services.

You are free to change the domain an port settings in buildout.cfg before running buildout

Buildout must not be run as root, as postgresql won't start with root privileges:

mkdir downloads
python bootstrap.py
./bin/buildout -v

After running buildout execute following command, to create DB:

./bin/manage.py syncdb
./bin/manage.py migrate
./bin/manage.py runserver

Now we want to start downloading and start our celery workers:

./bin/manage.py celeryd -c 4 -l info
./bin/manage.py trigger_bulk_sync

This starts 4 celery worker, with additional information, and creates an Queue Entry in Redis

With Supervisord (settings in buildout.cfg) you can watch/restart/stop your services, by a simple webinterface:

./bin/supervisord

After that you can acces SuperVisor Webinterface, or use supervisorctl

to find our entries/packages by crate.io webinterface we have to index the packes by running:

./bin/manage.py rebuild_index

This rebuilds an existing index, or creates a new one, if it doesn't exist.

About

buildout for crate.io, installs redis, postgresql, flower, elasticsearch. Also reactivates the trigger_bulk_sync command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages