Merge pull request #1295 from derekpierre/local-fleet

Resolve issues running local development fleet scripts/files
pull/1300/head
K Prasch 2019-09-04 18:50:35 -07:00 committed by GitHub
commit 6d27d4d218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 7 deletions

View File

@ -33,6 +33,7 @@ The first step is to launch the first Ursula on the network by running:
.. code::
$ cd scripts/local_fleet
$ python run_lonely_ursula.py
This will start an Ursula node:
@ -42,7 +43,7 @@ This will start an Ursula node:
3. Run a Local Fleet of Ursulas
Next, launch subsequent Ursulas, informing them of the first Ursula:
Next, launch subsequent Ursulas in another terminal, informing them of the first Ursula:
.. code::

View File

@ -51,7 +51,7 @@ Here is the recommended procedure for setting up `nucypher` in this fashion:
$(nucypher-venv)
```
``` note:: Successful virtualenv activation is indicated by '(nucypher-venv)$' prepending your console's prompt
``` note:: Successful virtualenv activation is indicated by '(nucypher-venv)$' prepended to your console's prompt
```

View File

@ -19,13 +19,11 @@ along with nucypher. If not, see <https://www.gnu.org/licenses/>.
import functools
import os
from distutils.util import strtobool
import click
from twisted.logger import Logger
import collections
from distutils.util import strtobool
from nucypher.characters.control.emitters import StdoutEmitter, JSONRPCStdoutEmitter
from nucypher.config.constants import NUCYPHER_SENTRY_ENDPOINT
from nucypher.network.middleware import RestMiddleware
@ -37,7 +35,7 @@ def get_env_bool(var_name: str, default: bool) -> bool:
if var_name in os.environ:
# TODO: which is better: to fail on an incorrect envvar, or to use the default?
# Currently doing the former.
return strtoobool(os.environ[var_name])
return strtobool(os.environ[var_name])
else:
return default

View File

@ -9,7 +9,9 @@ mkdir /tmp/ursulas-logs
# Set PATH
export PATH=~/.local/bin:$PATH
source ~/.bashrc
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# Disable logging
export NUCYPHER_SENTRY_LOGS=0