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

Add post_deploy example to the .magento.app.yaml file #164

Closed
hostep opened this issue Apr 25, 2018 · 10 comments
Closed

Add post_deploy example to the .magento.app.yaml file #164

hostep opened this issue Apr 25, 2018 · 10 comments
Assignees

Comments

@hostep
Copy link

hostep commented Apr 25, 2018

Hi guys!

I was looking for information around how we should setup then new post_deploy hook which was introduced in ece-tools v2002.0.10 and I couldn't find it in the changelog for the ece-tools, so I started by looking here, since I assumed it would be here, but it isn't unfortunately.

After some more searching around, I did find it on the devdocs: http://devdocs.magento.com/guides/v2.2/cloud/project/project-conf-files_magento-app.html

But I think it should be added to this project as well?


Slightly related, it looks like we have a new binary now ./vendor/bin/ece-tools, and I think it can be used for the build and deploy hooks as well. If that's true, it might make sense to make these hooks in this project consistent so it looks clean (and also do the same thing in the documentation)


Update: and just found another config missing, in the .magento.env.yaml file, it currently doesn't contain the post-deploy configuration, which can be found over here at the devdocs: http://devdocs.magento.com/guides/v2.2/cloud/env/variables-post-deploy.html

Update 2: also the SKIP_HTML_MINIFICATION example doesn't exist yet in this project, see docs again: http://devdocs.magento.com/guides/v2.2/cloud/env/variables-intro.html#skip_html_minification
It might be possible that other examples are also missing, but I'm going to stop looking for these now 😉

Thanks!

@shiftedreality
Copy link
Member

shiftedreality commented May 1, 2018

Thanks @hostep

We have a ticket MAGECLOUD-1911 to add post-deploy hook.
We have an internal task to update all environment variables in the template MAGECLOUD-1908

@shiftedreality
Copy link
Member

Changes regarding correct hooks were merged.

@hostep
Copy link
Author

hostep commented May 4, 2018

Thanks @shiftedreality & @billygilbert !

@YPyltiai
Copy link
Contributor

YPyltiai commented May 7, 2018

@hguthrie , please fix DevDocs examples of hooks (https://devdocs.magento.com/guides/v2.2/cloud/project/project-conf-files_magento-app.html#hooks) to be aligned with https://github.com/magento/magento-cloud/blob/master/.magento.app.yaml#L73-L82

Once fixed, this request can be marked as completed.

Thanks!

@hguthrie
Copy link
Contributor

@YPyltiai I noticed this is not quite fixed yet. We have a sprint beginning and this is perfect to add to the sprint.

@hguthrie
Copy link
Contributor

Updated the hooks samples in the Cloud guide. Per @YPyltiai , this can be closed.

@hostep
Copy link
Author

hostep commented May 15, 2018

I don't agree with closing this issue just yet, my third remark hasn't been fixed yet. The .magento.env.yaml file in this repo still misses certain example configurations, for example:

  • SKIP_HTML_MINIFICATION
  • MYSQL_USE_SLAVE_CONNECTION
  • REDIS_USE_SLAVE_CONNECTION
  • WARM_UP_PAGES
  • ...

@YPyltiai
Copy link
Contributor

@hostep , this cannot be included into template anymore. In latest ECE-Tools to be released 2002.0.12 this file will be extracted from ECE-Tools during composer update process (sample file). It will have all the up to date variables with additional documentation, specified defaults & expected values. This was re-worked, so we can better maintain this file up to date. After 2002.0.12 this file from magento-cloud repo will be removed

@YPyltiai
Copy link
Contributor

@shiftedreality , please close the issue. Discussed with Pieter in Slack - we agreed that this can be marked as resolved.

@shiftedreality
Copy link
Member

Closed

michaelcasey316 pushed a commit that referenced this issue May 22, 2018
Merge 2002.0 into develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants