Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
131cba0c
authored
Sep 16, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: rephrase celery info
parent
e3475bd9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
34 deletions
+23
-34
docs/install.rst
+22
-33
miscellaneous/mancelery.conf
+1
-1
No files found.
docs/install.rst
View file @
131cba0c
...
@@ -64,6 +64,14 @@ Also, create a new database and user::
...
@@ -64,6 +64,14 @@ Also, create a new database and user::
$ sudo -u postgres psql <<<"ALTER USER circle WITH PASSWORD 'circle';"
$ sudo -u postgres psql <<<"ALTER USER circle WITH PASSWORD 'circle';"
$ sudo -u postgres createdb circle -O circle
$ sudo -u postgres createdb circle -O circle
Configure RabbitMQ: remove the guest user, add virtual host and user with
proper permissions::
$ sudo rabbitmqctl delete_user guest
$ sudo rabbitmqctl add_vhost circle
$ sudo rabbitmqctl add_user cloud password
$ sudo rabbitmqctl set_permissions -p circle cloud '.*' '.*' '.*'
Enable SSH server to accept your name and address from your environment::
Enable SSH server to accept your name and address from your environment::
$ sudo sed -i /etc/ssh/sshd_config -e '$ a AcceptEnv GIT_*'
$ sudo sed -i /etc/ssh/sshd_config -e '$ a AcceptEnv GIT_*'
...
@@ -85,35 +93,6 @@ Allow sending it in your **local** ssh configuration::
...
@@ -85,35 +93,6 @@ Allow sending it in your **local** ssh configuration::
Host *
Host *
SendEnv GIT_*
SendEnv GIT_*
Conigure RabbitMQ
-----------------
Delete guest user::
$ sudo rabbitmqctl delete_user guest
Make a new virtual host to the AMQP server::
$ sudo rabbitmqctl add_vhost circle
Create new user with a password::
$ sudo rabbitmqctl add_user cloud password
Set permission of the new user on the virtual host::
$ sudo rabbitmqctl set_permissions -p circle cloud '.*' '.*' '.*'
.. note::
You can check the result with this command::
$ sudo rabbitmqctl list_permissions -p circle
Sample result::
$ Listing permissions in vhost "circle" ...
cloud .* .* .*
...done.
Setting up Circle itself
Setting up Circle itself
------------------------
------------------------
...
@@ -137,6 +116,7 @@ Set up default Circle configuration and activate the virtual environment::
...
@@ -137,6 +116,7 @@ Set up default Circle configuration and activate the virtual environment::
export DJANGO_FIREWALL_SETTINGS='{"dns_ip": "152.66.243.60", "dns_hostname":
export DJANGO_FIREWALL_SETTINGS='{"dns_ip": "152.66.243.60", "dns_hostname":
"localhost", "dns_ttl": "300", "reload_sleep": "10",
"localhost", "dns_ttl": "300", "reload_sleep": "10",
"rdns_ip": "152.66.243.60", "default_vlangroup": "publikus"}'
"rdns_ip": "152.66.243.60", "default_vlangroup": "publikus"}'
export AMQP_URI='amqp://cloud:password@localhost:5672/circle'
END
END
$ workon circle
$ workon circle
$ cd ~/circle
$ cd ~/circle
...
@@ -154,6 +134,16 @@ You can now start the development server::
...
@@ -154,6 +134,16 @@ You can now start the development server::
$ circle/manage.py runserver '[::]:8080'
$ circle/manage.py runserver '[::]:8080'
You will also need to run a local Celery worker::
$ circle/manage.py celery worker -A manager.mancelery
.. note::
You might run the Celery worker (and also the development server) in GNU
Screen, or use Upstart::
$ sudo cp miscellaneous/mancelery.conf /etc/init/
$ sudo start mancelery
Building documentation
Building documentation
----------------------
----------------------
...
@@ -167,8 +157,7 @@ process. ::
...
@@ -167,8 +157,7 @@ process. ::
You might also want to serve the generated docs with Python's development
You might also want to serve the generated docs with Python's development
server::
server::
$ cd _build/html
$ (cd _build/html && python -m SimpleHTTPServer 8080)
$ python -m SimpleHTTPServer 8080
Configuring vim
Configuring vim
---------------
---------------
...
@@ -178,9 +167,9 @@ configure vim like we do::
...
@@ -178,9 +167,9 @@ configure vim like we do::
$ mkdir -p ~/.vim/autoload ~/.vim/bundle
$ mkdir -p ~/.vim/autoload ~/.vim/bundle
$ curl -Sso ~/.vim/autoload/pathogen.vim \
$ curl -Sso ~/.vim/autoload/pathogen.vim \
$
https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
$ cd ~/.vim; mkdir -p bundle; cd bundle && git clone \
$ cd ~/.vim; mkdir -p bundle; cd bundle && git clone \
$
git://github.com/klen/python-mode.git
git://github.com/klen/python-mode.git
$ cat >>~/.vimrc <<END
$ cat >>~/.vimrc <<END
filetype off
filetype off
call pathogen#infect()
call pathogen#infect()
...
...
miscellaneous/mancelery.conf
View file @
131cba0c
...
@@ -11,6 +11,6 @@ chdir /home/cloud/circle/circle
...
@@ -11,6 +11,6 @@ chdir /home/cloud/circle/circle
script
script
. /
home
/
cloud
/.
virtualenvs
/
circle
/
local
/
bin
/
postactivate
. /
home
/
cloud
/.
virtualenvs
/
circle
/
local
/
bin
/
postactivate
exec
/
home
/
cloud
/.
virtualenvs
/
circle
/
bin
/
python
manage
.
py
celery
worker
-
A
manager
.
mancelery
--
loglevel
=
info
exec
/
home
/
cloud
/.
virtualenvs
/
circle
/
bin
/
python
manage
.
py
celery
worker
-
A
manager
.
mancelery
--
loglevel
=
info
--
logfile
=/
tmp
/
mancelery
.
log
end
script
end
script
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment