Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experience notes spinning up clojuredocs in local #248

Open
ccfontes opened this issue Aug 18, 2023 · 1 comment
Open

Experience notes spinning up clojuredocs in local #248

ccfontes opened this issue Aug 18, 2023 · 1 comment

Comments

@ccfontes
Copy link

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/mongodb-community@5.0/bin
  • don't brew services start mongodb-community@5.0, 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.

@dimmyjr
Copy link
Collaborator

dimmyjr commented Nov 15, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants