Project 'rc/self-reg-form' was moved to 'rc/account-app'. Please update any links and bookmarks that may still have the old path.
Add pre commit
Compare changes
- Bo-Chun Chen authored
+ 28
− 28
This is a flask application that leverages [RabbitMQ](https://www.rabbitmq.com/) and [Celery](https://docs.celeryproject.org/en/latest/getting-started/introduction.html)
to asynchronously create a Cheaha user account. Currently the project is being developed on an Openstack cluster.
- Create this by navigating to you home directory via typing `$ cd` and entering the following commands:<br>
@@ -46,7 +46,7 @@ $ pip install -r requirements.txt
@@ -46,7 +46,7 @@ $ pip install -r requirements.txt
- Start server using the command `$ rabbitmq-server`. (Note, this implementation assumes RabbitMQ is running on localhost on standard port 5672)
@@ -56,13 +56,13 @@ $ pip install -r requirements.txt
@@ -56,13 +56,13 @@ $ pip install -r requirements.txt
- First, import signing key using `$ rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc`
- Next, install Erlang using `$ yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm`
- The server is not started as a daemon by default when the RabbitMQ server package is installed. To start the
- As an administrator, start and stop the server as usual: <br/>`/sbin/service rabbitmq-server start`
- The current configuration assumes the following username password combination. To change the password, type
- Note that rabbitmqctl may require sudo permissions and that changing the password will require a password
@@ -75,11 +75,11 @@ $ pip install -r requirements.txt
@@ -75,11 +75,11 @@ $ pip install -r requirements.txt
@@ -90,21 +90,21 @@ $ pip install -r requirements.txt
@@ -90,21 +90,21 @@ $ pip install -r requirements.txt
@@ -120,7 +120,7 @@ $ python base_consumer.py ohpc
@@ -120,7 +120,7 @@ $ python base_consumer.py ohpc
@@ -129,7 +129,7 @@ You should now see that the message has been sent and displayed on the ohpc node
@@ -129,7 +129,7 @@ You should now see that the message has been sent and displayed on the ohpc node
`$ celery -A tasks worker --loglevel=info --concurrency=4 1> ~/celery.out 2> ~/celery.err &` <br><br>
is what is initiating the worker and the remainder serves to write the stdout and stderr to two separate files
@@ -138,15 +138,15 @@ Simply type `$ python run.py` <br>
@@ -138,15 +138,15 @@ Simply type `$ python run.py` <br>
Alternatively, type `$ python run.py > ~/flask.out 2> ~/flask.err &` to run the process in the background
If all goes well, you should have your processes running in the background. Check the status of these by typing
[1]- Running celery -A tasks worker --loglevel=info --concurrency=4 > ~/celery.out 2> ~/celery.err &
@@ -157,5 +157,5 @@ address bar replacing `.xxx` with the final octet of the __OOD__ node. You shoul
@@ -157,5 +157,5 @@ address bar replacing `.xxx` with the final octet of the __OOD__ node. You shoul
- You should see an overlay signifying the account is being created. After 5 seconds it should disappear and signify the account creation has been successful.
- You can view the output/errors of either the worker and flask server by opening `flask.out`, `flask.err`,