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

Indicate to ember-cli that this addon should be "before" redis #2

Merged
merged 1 commit into from
May 29, 2015

Conversation

lukemelia
Copy link
Contributor

Indicate to ember-cli that this addon should be "before" the redis plugin (if present).

Because both plugins implement the build hook, this will make it so that s3 runs before redis, and thus, that the assets are uploaded before the HTML that points to them.

…ugin (if present).

Because both plugins implement the build hook, this will make it so that s3 runs before redis, and thus, that the assets are uploaded before the HTML that points to them.
@@ -50,6 +50,7 @@
"minimatch": "^2.0.4"
},
"ember-addon": {
"configPath": "tests/dummy/config"
"configPath": "tests/dummy/config",
"before": "ember-cli-deploy-redis"
Copy link
Member

Choose a reason for hiding this comment

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

@lukemelia This does feel a little weird in that it fixes it for this example but if a user is using a different plugin uploading the index.html somewhere else, they have the same problem. The "advanced config" will really be the true solution to this I think where a user can specify in config the order that plugins should run. But for now, this is a good middle ground.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree re: the advanced config. But I think we can add these order hints as necessary to help make plugins work together out of the box.

achambers pushed a commit that referenced this pull request May 29, 2015
Indicate to ember-cli that this addon should be "before" redis
@achambers achambers merged commit 904933c into ember-cli-deploy:master May 29, 2015
@achambers
Copy link
Member

Thanks @lukemelia

@lukemelia lukemelia deleted the s3-before-redis branch May 30, 2015 04:07
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