From 6f35ae4e05a38a1250bac366e4590484981c89dc Mon Sep 17 00:00:00 2001 From: Eric Ihli Date: Fri, 24 Sep 2021 21:00:10 -0500 Subject: [PATCH] Only expose DB locally --- README.org | 19 +++++-------------- db/run.sh | 2 +- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/README.org b/README.org index ed9c439..37721ab 100644 --- a/README.org +++ b/README.org @@ -1,4 +1,6 @@ -#+TITLE: RhymeStormâ„¢ +#+TITLE: DarkLimericks + +The world's largest metal limericks archive on the Web. * How To Initialize Development Environment @@ -15,7 +17,6 @@ 2. Start a Clojure REPL in Emacs, evaluate the ~dev/user.clj~ namespace, and run ~(init)~ 3. Visit ~http://localhost:8000~ - * How To Run Software Locally ** Requirements @@ -27,21 +28,11 @@ 1. Run ~./db/run.sh && ./kv/run.sh~ to start the docker containers for the database and key-value store. a. The ~run.sh~ scripts only need to run once. They initialize development data containers. Subsequent development can continue with ~docker start db && docker start kv~. 2. The application's ~jar~ builds with a ~make~ run from the root directory. (See [[file:../Makefile][Makefile]]). -3. Navigate to the root directory of this git repo and run ~java -jar darklimericks.jar~ +3. Navigate to the root directory of this git repo and run ~java -jar web/darklimericks.jar~ 4. Visit http://localhost:8000 - - * Development Requires [[https://github.com/tachyons-css/tachyons/][Tachyons CSS]]. There is a symlink in ~web/resources/public~ to the pre-built ~tachyons.css~ and ~tachyons.min.css~ found in the repo. -Build ~.jar~ with ~clojure -X:depstart uberjar :jar prhyme.jar~. - -* TODO - -** Use tightly packed trie for limerick generation - -** Move limerick-specific code into this repo from Prhyme. - -Or maybe into its own repo. +Build ~.jar~ with ~clojure -X:depstar uberjar :jar prhyme.jar~. diff --git a/db/run.sh b/db/run.sh index 8269e54..daf9d47 100755 --- a/db/run.sh +++ b/db/run.sh @@ -9,5 +9,5 @@ docker run \ -e POSTGRES_PASSWORD=$POSTGRES_PASSWORD \ -e POSTGRES_USER=$POSTGRES_USER \ -v $PGDATA:/var/lib/postgresql/data \ - -p 5432:5432 \ + -p 127.0.0.1:5432:5432 \ darklimericks-db