Comments (16)
@timini You mean like this QuickStart section? ;)
You're right, it probably should be in there. This was an oversight.
More than happy to accept a PR from your fine self if you'd like to submit one.
from ember-cli-deploy-redis.
How about a "quick start" section similar to https://github.com/ember-cli-deploy/ember-cli-deploy-s3#quick-start which mentions you should install ember-cli-deploy-revision-data.
I think a lot of people will miss the prerequisites section at the bottom of the page, like i did.
from ember-cli-deploy-redis.
Cleared redis and tried again and it worked.
from ember-cli-deploy-redis.
never mind it didn't actually deployed it just didn't error.
Running again errors
- `undefined` is not a valid revision key
`undefined` is not a valid revision key
undefinedPipeline aborted
running ember deploy production one more time after that gets
- Value already exists for key: touchcard-app:index:default
Value already exists for key: touchcard-app:index:default
undefinedPipeline aborted
from ember-cli-deploy-redis.
@varblob you likely need to set the allowOverwrite config option for the redis plugin. See the read me for details.
from ember-cli-deploy-redis.
I ended up switching to the lightning pack since things didn't seem to work out of the box. Works fine now. Also just want to say this new version is awesome!
from ember-cli-deploy-redis.
Sounds like we may have some bugs around usage without revisionData in the context. I'm going to reopen to track that.
from ember-cli-deploy-redis.
I'm just getting ramped up with ember-cli-deploy and can't get past this error, with or without the allowOverwrite
option. Any suggestions on things to try? Everything else works fine, but I have to manually activate the key in redis-cli.
from ember-cli-deploy-redis.
I installed the lightning pack and disabled the S3 plugin (I'm using PageFront). Now it activates the page but I still get the error at the end. Not sure if this helps or hurts the diagnostic effort...
$ ember deploy prod --activate
version: 1.13.13
- Preparing for deploy...
- Uploaded 0 assets
- Success! Released v13 to https://fanriff.pagefrontapp.com
- ✔ Activated revision `1a84b07f7cef50c3df85493c9e782fa1`
[object Object]
undefinedPipeline aborted
from ember-cli-deploy-redis.
@mwpastore can you try to run with --verbose and gist the output?
maybe also your package.json could help in trying to reproduce
thanks!
from ember-cli-deploy-redis.
I just ran into this same error. Here's what I see when I run with --verbose
:
version: 1.13.12
Registering hook -> configure[build]
Registering hook -> build[build]
Registering hook -> configure[gzip]
Registering hook -> willUpload[gzip]
Registering hook -> configure[redis]
Registering hook -> upload[redis]
Registering hook -> willActivate[redis]
Registering hook -> activate[redis]
Registering hook -> didDeploy[redis]
Executing pipeline
|
+- configure
| |
| +- build
| - validating config
| - Missing config: `outputPath`, using default: `tmp/deploy-dist`
| - config ok
| |
| +- gzip
| - validating config
| - Missing config: `filePattern`, using default: `**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2}`
| - Missing config: `zopfli`, using default: `false`
| - Missing config: `keep`, using default: `false`
| - Missing config: `distDir`, using default: `[Function]`
| - Missing config: `distFiles`, using default: `[Function]`
| - config ok
| |
| +- redis
| - validating config
| - Missing config: `filePattern`, using default: `index.html`
| - Missing config: `distDir`, using default: `[Function]`
| - Missing config: `keyPrefix`, using default: `[Function]`
| - Missing config: `activationSuffix`, using default: `current`
| - Missing config: `activeContentSuffix`, using default: `current-content`
| - Missing config: `revisionKey`, using default: `[Function]`
| - Missing config: `didDeployMessage`, using default: `[Function]`
| - Missing config: `redisDeployClient`, using default: `[Function]`
| - Missing config: `maxRecentUploads`, using default: `10`
| - config ok
|
+- setup
|
+- willDeploy
|
+- willBuild
|
+- build
| |
| +- build
| - building app to `tmp/deploy-dist` using buildEnv `production`...
| - ✔ assets/project-6166d5e1f182c736fe3adba5a9d08caf.js
| - ✔ assets/project-d167fcab4443823c03f204a78b6ff192.css
| - ✔ assets/vendor-7dbb5eac474c6658404b4313dd6ae6ad.js
| - ✔ assets/vendor-d2d2d56d71bac7f48cb87981cfac042f.css
| - ✔ crossdomain.xml
| - ✔ index.html
| - ✔ robots.txt
| - build ok
|
+- didBuild
|
+- willPrepare
|
+- prepare
|
+- didPrepare
|
+- willUpload
| |
| +- gzip
| - gzipping `**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2}`
| - ✔ assets/project-d167fcab4443823c03f204a78b6ff192.css
| - ✔ robots.txt
| - ✔ crossdomain.xml
| - ✔ assets/vendor-d2d2d56d71bac7f48cb87981cfac042f.css
| - ✔ assets/project-6166d5e1f182c736fe3adba5a9d08caf.js
| - ✔ assets/vendor-7dbb5eac474c6658404b4313dd6ae6ad.js
| - gzipped 6 files ok
|
+- upload
| |
| +- redis
| - Uploading `tmp/deploy-dist/index.html`
Unhandled rejection Error: ERR invalid DB index
at ReplyParser.<anonymous> (/Users/user/Sites/project/frontend/node_modules/ember-cli-deploy-redis/node_modules/redis/index.js:317:31)
at emitOne (events.js:77:13)
at ReplyParser.emit (events.js:169:7)
at ReplyParser.send_error (/Users/user/Sites/project/frontend/node_modules/ember-cli-deploy-redis/node_modules/redis/lib/parser/javascript.js:296:10)
at ReplyParser.execute (/Users/user/Sites/project/frontend/node_modules/ember-cli-deploy-redis/node_modules/redis/lib/parser/javascript.js:181:22)
at RedisClient.on_data (/Users/user/Sites/project/frontend/node_modules/ember-cli-deploy-redis/node_modules/redis/index.js:547:27)
at Socket.<anonymous> (/Users/user/Sites/project/frontend/node_modules/ember-cli-deploy-redis/node_modules/redis/index.js:102:14)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:146:16)
at Socket.Readable.push (_stream_readable.js:110:10)
at TCP.onread (net.js:521:20)
| - Uploaded with key `project:index:default`
|
+- didUpload
|
+- willActivate
| |
| +- redis
|
+- activate
| |
| +- redis
| - Activating revision `undefined`
Unhandled rejection Error: ERR invalid DB index
at ReplyParser.<anonymous> (/Users/user/Sites/project/frontend/node_modules/ember-cli-deploy-redis/node_modules/redis/index.js:317:31)
at emitOne (events.js:77:13)
at ReplyParser.emit (events.js:169:7)
at ReplyParser.send_error (/Users/user/Sites/project/frontend/node_modules/ember-cli-deploy-redis/node_modules/redis/lib/parser/javascript.js:296:10)
at ReplyParser.execute (/Users/user/Sites/project/frontend/node_modules/ember-cli-deploy-redis/node_modules/redis/lib/parser/javascript.js:181:22)
at RedisClient.on_data (/Users/user/Sites/project/frontend/node_modules/ember-cli-deploy-redis/node_modules/redis/index.js:547:27)
at Socket.<anonymous> (/Users/user/Sites/project/frontend/node_modules/ember-cli-deploy-redis/node_modules/redis/index.js:102:14)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:146:16)
at Socket.Readable.push (_stream_readable.js:110:10)
at TCP.onread (net.js:521:20)
Unhandled rejection Error: ERR invalid DB index
at ReplyParser.<anonymous> (/Users/user/Sites/project/frontend/node_modules/ember-cli-deploy-redis/node_modules/redis/index.js:317:31)
at emitOne (events.js:77:13)
at ReplyParser.emit (events.js:169:7)
at ReplyParser.send_error (/Users/user/Sites/project/frontend/node_modules/ember-cli-deploy-redis/node_modules/redis/lib/parser/javascript.js:296:10)
at ReplyParser.execute (/Users/user/Sites/project/frontend/node_modules/ember-cli-deploy-redis/node_modules/redis/lib/parser/javascript.js:181:22)
at RedisClient.on_data (/Users/user/Sites/project/frontend/node_modules/ember-cli-deploy-redis/node_modules/redis/index.js:547:27)
at Socket.<anonymous> (/Users/user/Sites/project/frontend/node_modules/ember-cli-deploy-redis/node_modules/redis/index.js:102:14)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:146:16)
at Socket.Readable.push (_stream_readable.js:110:10)
at TCP.onread (net.js:521:20)
| - `undefined` is not a valid revision key
|
+- didFail
`undefined` is not a valid revision key
undefined|
Pipeline aborted
from ember-cli-deploy-redis.
@swastik Can you please your deploy.js
here? Also, it looks like you're not running the revision-data
plugin which I would expect to so. Otherwise, ember-cli-deploy has not idea where to get the unique revision key from for your deploy.
from ember-cli-deploy-redis.
@achambers — That plugin fixed it! 👍
Thank you for the great work!
from ember-cli-deploy-redis.
Just had this issue too, could you please stare the requirement for the revision-data plugin in the readme?
from ember-cli-deploy-redis.
@timini It is right there in the Prerequisites section.... revisionData.revisionKey
from ember-cli-deploy-redis.
this should have been addressed
from ember-cli-deploy-redis.
Related Issues (20)
- Simple redis url does not work HOT 2
- Prember / Multiple File Support HOT 2
- How to use with sentinel? HOT 2
- Swap out then-redis for another redis lib HOT 11
- improve logging for fetchRevisions HOT 3
- Should an exception be thrown for duplicate redis keys? HOT 5
- Upload multiple files HOT 5
- Inconsistency with keyPrefix HOT 4
- Connecting manually via redis-cli works but ember-cli-deploy-redis gets a "connect ETIMEDOUT" error HOT 12
- TypeError: this.readConfig is not a function HOT 5
- this.readConfig is not a function HOT 3
- How do we set the expire for each key? HOT 2
- then-redis yarn warning HOT 4
- didDeploy hook to publish changes HOT 1
- Error in 1.0.1: this._listRevisions(...).then is not a function HOT 1
- Sample nginx conf HOT 1
- Difficult Error When URL Missing "redis://" HOT 1
- possible to upload multiple files? HOT 2
- then-redis is no longer maintained HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli-deploy-redis.