Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arweave Should Not Build Before Being Stopped #621

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion bin/arweave.env
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ else
# extended start script to run from our current directory (which is necessary for relative
# paths to work correctly and not be relative to the rebar3 _build release directory)
echo Building dependencies for target ${ARWEAVE_BUILD_TARGET:-default}...
(cd ${PARENT_DIR} && ./ar-rebar3 ${ARWEAVE_BUILD_TARGET:-default} release)

# sometimes, arweave does not need to be build, for example
# when someone is stopping a node.
if ! [ "${SKIP_BUILD}" ]; then
(cd ${PARENT_DIR} && ./ar-rebar3 ${ARWEAVE_BUILD_TARGET:-default} release)
fi

export ARWEAVE="${SCRIPT_DIR}/arweave-dev"
export ARWEAVE_COMMAND="console"
fi
Expand Down
3 changes: 2 additions & 1 deletion bin/stop
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set -e
SCRIPT_DIR="$(dirname "$0")"

# Sets $ARWEAVE and $ARWEAVE_* variables
SKIP_BUILD=yes
source $SCRIPT_DIR/arweave.env

$ARWEAVE stop
$ARWEAVE stop
Loading