Skip to content

Commit

Permalink
Remove useless stuff, fix front typo (#98) (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
kchojn authored Mar 16, 2022
1 parent 582f7ba commit 7290e6e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 16 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ Here is a list of steps to recreate local environment on <b>Ubuntu</b> distribut
# Optional. Those represent data required for connecting to mongoDB. It's used for caching semantics
# used in decoding process. But, it's not neccessary for running, If you don't want to use permanent
# db or setup mongo, leave those values, mongomock package is used to simulate in-memory mongo.
MONGO_CONNECTION_STRING=mongomock://localhost
MONGODB_DB=ethtx

MONGO_CONNECTION_STRING=mongomock://localhost/ethtx

# Optional. Credentials for accessing semantics editor page, available under '/semantics/<str:address>'
ETHTX_ADMIN_USERNAME=admin
Expand Down
2 changes: 1 addition & 1 deletion ethtx_ce/app/frontend/templates/transaction.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ <h3>
<a title="Home" href="/">
<i class="fas fa-home "></i>
</a> Analysis for: <span class="transaction-hash">
{{ transaction.tx_hash }}/ {{ transaction.chain_id }}</span>
{{ transaction.tx_hash }} / {{ transaction.chain_id }}</span>
</h3>
<div class="container-info-logo">
<div class="transaction-info">
Expand Down
5 changes: 0 additions & 5 deletions ethtx_ce/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@ if [ -f /app/app/wsgi.py ]; then
elif [ -f /app/wsgi.py ]; then
DEFAULT_MODULE_NAME=wsgi
fi
echo "DEFAULT_MODULE_NAME: $DEFAULT_MODULE_NAME"

MODULE_NAME=${MODULE_NAME:-$DEFAULT_MODULE_NAME}
VARIABLE_NAME=${VARIABLE_NAME:-app}
echo "MODULE_NAME: $MODULE_NAME"
echo "VARIABLE_NAME: $VARIABLE_NAME"

export APP_MODULE=${APP_MODULE:-"$MODULE_NAME:$VARIABLE_NAME"}
echo "APP_MODULE: $APP_MODULE"

if [ -f /app/gunicorn_conf.py ]; then
DEFAULT_GUNICORN_CONF=/app/gunicorn_conf.py
Expand All @@ -26,6 +22,5 @@ else
DEFAULT_GUNICORN_CONF=/gunicorn_conf.py
fi
export GUNICORN_CONF=${GUNICORN_CONF:-$DEFAULT_GUNICORN_CONF}
echo "GUNICORN_CONF: $GUNICORN_CONF"

exec "$@"
4 changes: 1 addition & 3 deletions ethtx_ce/start-reload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
set -e

# Start Gunicorn
echo "Starting Gunicorn --reload ..."
echo "GUNICORN_CONF: $GUNICORN_CONF"
echo "APP_MODULE: $APP_MODULE"
echo "Starting Gunicorn..."
exec pipenv run gunicorn "--reload" -k egg:meinheld#gunicorn_worker -c "$GUNICORN_CONF" "$APP_MODULE"
5 changes: 1 addition & 4 deletions ethtx_ce/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@
set -e

# Start Gunicorn
echo "Starting Gunicorn ..."
echo "GUNICORN_CONF: $GUNICORN_CONF"
echo "APP_MODULE: $APP_MODULE"

echo "Starting Gunicorn..."
exec pipenv run gunicorn -k egg:meinheld#gunicorn_worker -c "$GUNICORN_CONF" "$APP_MODULE"

0 comments on commit 7290e6e

Please sign in to comment.