clojuredocs
clojuredocs copied to clipboard
Experience notes spinning up clojuredocs in local
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], becausebin/devis 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) runmongosh, 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
5000port: hardcoded port4000(I couldn't get this to work, despite changing all occurrences of5000) - 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.
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.