forked from stacks-network/stacks-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_started.sh
executable file
·44 lines (37 loc) · 1.01 KB
/
get_started.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# This script will set you up with all the
# code you need to run a Blockstack Core node,
# version 0.14.
#
# Please note that this is *experimental software*.
# Use at your own risk.
#
# It's best to run this in a virtualenv. Otherwise,
# if you have any prior Blockstack packages installed,
# you should remove them.
BRANCH="rc-0.14.0"
if [ $# -ge 2 ]; then
BRANCH="$1"
fi
for repo in dns-zone-file-py blockstack-profiles-py virtualchain blockstack-cli blockstack-core; do
git clone "https://github.com/blockstack/$repo"
pushd "$repo"
git checkout "$BRANCH"
python ./setup.py build && sudo python ./setup.py install
if [ $? -ne 0 ]; then
echo "Failed to install"
exit 1
fi
popd
done
echo ""
echo "Installation finished"
echo "For best results, start and run with this command:"
echo ""
echo " $ nohup BLOCKSTACK_DEBUG=1 blockstack-server start --foreground &"
echo ""
echo "To stop it later, use this command:"
echo ""
echo " $ blockstack-server stop
echo ""
exit 0