-
Notifications
You must be signed in to change notification settings - Fork 950
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
feat: add constructor option for redis config #846
Conversation
Thanks for opening this pull request! A contributor should be by to give feedback soon. In the meantime, please check out the contributing guidelines and explore other ways you can get involved. |
I've tested this with redis+sentinels and it works.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool! 😎
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff and thanks @chrishiestand! Just one request to update the type for redisConfig
, if possible.
Redis.RedisOptions does not support type string so we now keep the config object and env string in separate variables
e125e69
to
de70968
Compare
🎉 This PR is included in version 8.0.0-beta.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@tcbyrd It might just be something I don't see on my side, but I'm experiencing an issue with the build artifact from this PR. If I build my app using the new git branch from this PR, and run it, data is written to redis+sentinels as I expect. But if I build with npm package Here is the except from my app Dockerfile that shows how I'm building directly from the git branch: FROM node:10-alpine
# temporary extras RUNs for probot testing
RUN echo installing os dependencies... && \
apk add --update --no-cache -t build-deps git make python
RUN echo installing node dependencies... && \
npm --prefix=/app install
RUN echo probot build... && \
cd /app/node_modules/ && \
rm -rf probot && \
git clone --single-branch --branch v8.0.0-beta.6@beta https://github.com/probot/probot && \
cd probot && \
npm install && \
npm run build && \
echo cleaning up... && \
apk del build-deps && \
rm -rf /root/.npm /root/.node-gyp |
This comment has been minimized.
This comment has been minimized.
Sorry, those were typos in the comment (not in my dockerfile). I fixed them via edit. I am using the git tag |
In both cases, package.json shows "probot": "^8.0.0-beta.6", |
Just to be sure, does it work if you install from NPM, and just not from the tagged release? I'm not 💯 clear how semantic release cuts the release. Maybe @gr2m would know? |
Install which version from npm? If you mean In the case of installing from npm my Dockerfile excerpt is this: # temporary extras RUNs for probot testing
RUN echo installing os dependencies... && \
apk add --update --no-cache -t build-deps git make python
RUN echo installing node dependencies... && \
npm --prefix=/app install && \
echo cleaning up... && \
apk del build-deps && \
rm -rf /root/.npm /root/.node-gyp |
* add constructor option for redis config close #845
* add constructor option for redis config close #845
close #845