Open Duder-onomy opened 6 years ago
Great addon! Thanks for doing this.
When using this in a fastboot server, and also using ember-cli-revision-data's non default options, specifically the revision type alongside a - separator, the outputPathFor method returns an incorrect path.
-
outputPathFor
For Example, Im my ember apps, config/deploy.js
config/deploy.js
'revision-data': { type: 'version-commit', separator: '-', },
Using https://github.com/ember-cli-deploy/ember-cli-deploy-fastboot-app-server-aws and deploying generates this zip file : dist-1.0.16-136a105c.zip The 1.0.16 in there is the version number in our app.
dist-1.0.16-136a105c.zip
When fastboot s3 downloader unzips this file, it thinks that the unzipped contents live at dist-1.0.16 when in fact, they just live at dist.
dist-1.0.16
dist
The command to install npm dependencies fails as the output path is incorrect.
I think that the outputForPath method should be smarter OR maybe we should unzip into a directory that the fastboot-app-server specifies.
outputForPath
Hope this makes sense.
Great addon! Thanks for doing this.
When using this in a fastboot server, and also using ember-cli-revision-data's non default options, specifically the revision type alongside a
-
separator, theoutputPathFor
method returns an incorrect path.For Example, Im my ember apps,
config/deploy.js
Using https://github.com/ember-cli-deploy/ember-cli-deploy-fastboot-app-server-aws and deploying generates this zip file :
dist-1.0.16-136a105c.zip
The 1.0.16 in there is the version number in our app.When fastboot s3 downloader unzips this file, it thinks that the unzipped contents live at
dist-1.0.16
when in fact, they just live atdist
.The command to install npm dependencies fails as the output path is incorrect.
I think that the
outputForPath
method should be smarter OR maybe we should unzip into a directory that the fastboot-app-server specifies.Hope this makes sense.