clojuredocs icon indicating copy to clipboard operation
clojuredocs copied to clipboard

Experience notes spinning up clojuredocs in local

Open ccfontes opened this issue 2 years ago • 1 comments

Leaving some notes about my experience in the hope it's useful to someone:

  • mongodb version that works: 5.0 (6.0 doesn't work). Then don't forget to set the env (here, mac):
export PATH=$PATH:/opt/homebrew/opt/[email protected]/bin
  • don't brew services start [email protected], because bin/dev is doing this
  • In case one installed the wrong version of mongodb for starters, then when using 5.0, there may be a problem about document incompatibility. If so, (install and) run mongosh, then fix with:
use admin
db.system.version.updateOne( { "_id": "featureCompatibilityVersion" }, { "$set": { "version": "5.0" } } )

PS: When removing the contents of dev-db/* with the hope of a clean slate, things could get worse. this directory is gitignored, so do a fresh clone of this repo.

  • seems the mac is using the 5000 port: hardcoded port 4000 (I couldn't get this to work, despite changing all occurrences of 5000)
  • fix to "urls of protocol error": use openjdk 1.8.0_292 with:
export JAVA_HOME=`/usr/libexec/java_home -v 1.8.0_292`
  • mitigation for killing manually figwheel everytime spin up fails:
kill -s 9 `ps -ef |grep figwheel|grep -v grep | awk '{print $2}'`

All errors are sorted out, head to 127.0.0.1:4000 but clojuredocs is not there. Fear not, there's a 0.0.0.0:4000 that works.

ccfontes avatar Aug 18 '23 17:08 ccfontes

Hi @ccfontes

Recently, we made some updates to ClojureDocs dependencies, and one of them involved congomongo, which is responsible for the MongoDB connection. As a result, it's now possible to execute ClojureDocs with new versions of MongoDB.

dimmyjr avatar Nov 15 '23 17:11 dimmyjr