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

docs: add sql-query test environment documentation #43

Merged
merged 3 commits into from
Nov 3, 2024

Conversation

tomwwinter
Copy link
Contributor

No description provided.

Copy link
Member

@sleidig sleidig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙂

volumes:
- ~/docker-volumes/aam-digital/sqs/data:/data
environment:
SQS_COUCHDB_URL: http://db-couch:5984
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couldn't this somehow support a public url like dev.aam-digital.com/db/couchdb?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

theoretically yes, but you will need the credentials for the couchdb instance.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if so, maybe we can add this as an option to the docs? Seems easier for query testing than mirroring the db locally (which also requires the admin password or full server access)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, i'm already on it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, it's complicated. Looks like the proxy in front of the CouchDB is making trouble...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you trying at /db or directly to couch at db/couchdb?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/db/couchdb - idk why its not working. Just getting some Internal Server Error from SQS, no more information

docs/developer/sql-test-environment/README.md Show resolved Hide resolved

### Using existing Database

If you have a copy from an existing database, stop the couchdb container and just copy all files from the `couchdb/data` directory
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will only help people who have access to a specific server. Did you try to use the sync UI of CouchDB Fauxton? This sometimes worked for me, sometimes I didn't get it to run 🙈

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct, i never used the sync ui for that... but it could work.

docs/developer/sql-test-environment/README.md Show resolved Hide resolved
@tomwwinter tomwwinter merged commit c4aa04d into main Nov 3, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants