Skip to content

Commit

Permalink
Fix .env used in batcher build process
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt committed Feb 16, 2024
1 parent 8e7d3dd commit 62ff926
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/batcher/batcher-standalone/scripts/post_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mv "$STANDALONE_DIR/dev-paima-batcher-macos" "$STANDALONE_DIR/$SUBDIR_BIN/" 2>/d
cp -r "./scripts/docker/." "$STANDALONE_DIR/$SUBDIR/"

# default env vars
ENV_TEMPLATE=.env.devnet
ENV_TEMPLATE=.env.localhost
cp "../$ENV_TEMPLATE" "$STANDALONE_DIR/$SUBDIR/$ENV_TEMPLATE"

# SQL initialization
Expand Down
2 changes: 1 addition & 1 deletion packages/batcher/runtime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ To run the batcher, it is recommended to use the instructions in [the root `READ

Before running, you need to have an instance of postgres running with a database initialized with [`db/migrations/up.sql`](db/migrations/up.sql) (running the docker setup will do this for you).

The runtime also expects various environment variables to be set -- see e.g. [`.env.devnet`](../.env.devnet).
The runtime also expects various environment variables to be set -- see e.g. [`.env.localhost`](../.env.localhost).

Finally, to run the batcher, simply compile the code, then run `node build/index.js`.

0 comments on commit 62ff926

Please sign in to comment.