Giter Site home page Giter Site logo

Comments (16)

achambers avatar achambers commented on June 21, 2024 2

@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.

timini avatar timini commented on June 21, 2024 1

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.

varblob avatar varblob commented on June 21, 2024

Cleared redis and tried again and it worked.

from ember-cli-deploy-redis.

varblob avatar varblob commented on June 21, 2024

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.

lukemelia avatar lukemelia commented on June 21, 2024

@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.

varblob avatar varblob commented on June 21, 2024

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.

lukemelia avatar lukemelia commented on June 21, 2024

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.

mwpastore avatar mwpastore commented on June 21, 2024

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.

mwpastore avatar mwpastore commented on June 21, 2024

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.

ghedamat avatar ghedamat commented on June 21, 2024

@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.

swastik avatar swastik commented on June 21, 2024

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.

achambers avatar achambers commented on June 21, 2024

@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.

swastik avatar swastik commented on June 21, 2024

@achambers — That plugin fixed it! 👍

Thank you for the great work!

from ember-cli-deploy-redis.

timini avatar timini commented on June 21, 2024

Just had this issue too, could you please stare the requirement for the revision-data plugin in the readme?

from ember-cli-deploy-redis.

achambers avatar achambers commented on June 21, 2024

@timini It is right there in the Prerequisites section.... revisionData.revisionKey

from ember-cli-deploy-redis.

ghedamat avatar ghedamat commented on June 21, 2024

this should have been addressed

from ember-cli-deploy-redis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.