Skip to content

Commit

Permalink
Some initial support for running things locally.
Browse files Browse the repository at this point in the history
  • Loading branch information
anjackson committed Nov 16, 2023
1 parent b2da9f1 commit eff833b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ __pycache__
*.pyc
access.log
error.log
*~
8 changes: 4 additions & 4 deletions ingest/w3act/deploy-w3act.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
#!/bin/bash

set -euo pipefail
set -euxo pipefail

# read script environ argument, check, and read envars
CONTEXT_ENV_FILE=$1
Expand All @@ -13,8 +13,8 @@ set -a # automatically export all variables
source ${CONTEXT_ENV_FILE}
set +a

if ! [[ ${DEPLOYMENT_CONTEXT} =~ DEV|BETA|PROD|INGEST ]]; then
echo "ERROR: Script $0 DEPLOYMENT_CONTEXT envar not (DEV|BETA|PROD|INGEST)"
if ! [[ ${DEPLOYMENT_CONTEXT} =~ DEV|BETA|PROD|INGEST|LOCAL ]]; then
echo "ERROR: Script $0 DEPLOYMENT_CONTEXT envar not (DEV|BETA|PROD|INGEST|LOCAL)"
exit
fi

Expand Down
27 changes: 27 additions & 0 deletions ingest/w3act/local.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
DEPLOYMENT_CONTEXT=LOCAL

STORAGE_PATH=${PWD}/_local_storage_

HTTPS_PROXY=""
SERVER_NAME="localhost"
W3ACT_SERVER_NAME="localhost"
JMX_HOSTNAME=localhost

W3ACT_PSQL_PASSWORD=local-pw

W3ACT_STORAGE=${STORAGE_PATH}/w3act
W3ACT_PSQL_VIEWER_PASSWORD="viewer"

APPLICATION_NAVBAR_COLOR="red"
APPLICATION_SECRET="SECRET"

DDHAPT_SIPS_SUBMITTED_DIR=${STORAGE_PATH}/ddhapt-sips-submitted
DDHAPT_EBOOKS_SUBMISSION_DIR=$STORAGE_PATH/ddhapt-submit-ebook
DDHAPT_EJOURNALS_SUBMISSION_DIR=$STORAGE_PATH/ddhapt-submit-ejournal

SECRET_SERVER_USER=""
SECRET_SERVER_PASSWORD=""
PII_URL=""

DDHAPT_PSQL_PASSWORD=local-pw

0 comments on commit eff833b

Please sign in to comment.