-
Notifications
You must be signed in to change notification settings - Fork 63
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
Refactored structure. #17
Conversation
Maybe we can remove the |
module Capistrano | ||
class FileNotFound < StandardError | ||
namespace :symfony do | ||
desc "Exceute a provided symfony command" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo fix : "Execute"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch thx 👍
aaaand maybe somebody wants to remove the bundle 😄 Namely me. Because with a reasonable opcode cache (that doesn't perform a stat-call on every request to that file) the bootstrap file doesn't increase performance anymore and as such it's useless. And therefore the bundle is not used anymore. Hadn't you said you think about dropping the console-related tasks in favor of custom tasks within the |
@kingcrunch That was just a suggestion. You've right, I agree to let the Sure that's why i removed Do you think more examples with Sorry if my comments are not so clear but my english is really bad :( |
@blaugueux @kingcrunch Hi guys, I'm just getting back from a London 🚲 Paris. I'll take a look at this when I am home this evening. I am trying to get a VM up and running for testing (like the capistrano main project) to help us along with these MRs |
OK, I am a little bit into this again too. Because actually it is quite easy to integrate symfony commands into the workflow I think its better to not integrate Oh, and please drop |
I agree to remove the I've seen many people asking native Assetic support in this gem that's why i've add it. It can be easy to use for people using the Symfony standard edition with really simple project to deploy. No ? |
Nevermind I got something wrong. I thought yesterday |
@kingcrunch i've updated my code with your proposal and a small doc into the readme. |
@blaugueux I am liking the look of all the changes here, nice work ( Thanks for the contributions! |
@peterjmit That's a good news :) Do you agree to remove the build_bootstrap command and to rename symfony:command to symfony:console ? |
@blaugueux Yeah, looks quite nice Regarding Regard |
@kingcrunch @blaugueux I feel like this bundle should aim to support the symfony standard edition in its default state (as that will satisfy the majority of users), beyond that accomodations/guides to supporting non-standard configurations can be given. Accordingly I would like to keep |
@peterjmit @kingcrunch Ok so to finish this PR i've renamed I think it's ready unless you want i made other updates :) |
@peterjmit Imo it is much easier to add it, but to remove it later. And there are reasons, why some don't want
Can you tell me, how to remove a single task from the flow again? (Imo introducing yet-another-configuration-option is not that clean...) |
Totally agree with @kingcrunch. |
A task can be easily removed (thanks to Rake)!
If the task is not included by default, then a standard symfony project cannot be deployed out of the box, which is something I think we should support |
@peterjmit IMHO most of Symfony project are based on Standard Edition and the I think it's better to add a command manually to the user configuration (with before or after) instead of removing it with your proposal. |
DistributionBundle (and By removing it from the flow, you are placing the onus of configuration on users that probably know less about what they are doing.
Group 1 will understand why you are forcing them to add configuration. Group 2 may not understand why they have to add configuration The expectation should be set with this library that if you have removed something/changed something from the standard edition, then you can expect to be adding/changing something in capistrano/symfony. |
... and it's performed with composer. So now you execute it twice.
So you assume, that somebody, who knows enough PHP to remove a
As pointed out above you already have to change something either in the standard-distribution, or the capistrano flow for a reasonable behaviour 😕 |
Case 1 : Power user that customizing symfony and don't want the SensioDistributionBundle Case 2 : Standard user using Symfony Standard Edition (most of our personas here) |
I think we are all talking cross purposes here
For now composer is run with the |
You can notice that |
Wrong 😄 Yeah, @blaugueux already said that, but I want to add, that this should have been considered harmful too. One may add additional scripts to the scripthandler and may expect, that they were executed. Even when they would overwrite the default to not include For me it is like that: Actually keeping |
My only ask was that I think we are all good here @blaugueux @kingcrunch |
Ok @peterjmit I've remove this flags to have a clear situation. And now its good to me :) |
Yep. 😄 But (not critical) couldn't you remove the composer flags completely? I mean, isn't that something, that should be covered by the composer gem instead? |
@kingcrunch i was thinking about that few minutes ago! @peterjmit ok for you? |
@blaugueux yea
My intention was for it to be removed completely - but that wasn't clear! |
@peterjmit #done 👍 |
One last thing (I have only just remembered) I originally started this library with a This is where my ruby knowledge lacks a bit, but I am assuming this has not been a problem here? |
I run my deploy to a vagrant VM without issue with this code. So maybe your issue has been fixed. |
Major refactor of flow and organisation Move all Symfony related commands into a symfony.rake file Move all deploy hook related stuff into a deploy.rake file Add a new symfony:assetic:dump command with configurable flags Add configurable flags to symfony:assets:install command Improve the doc Remove symfony:assets:install from the default hook structure. For projects using SensioDistributionBundle this task is already run during composer install. Remove `composer_install_flags`
@peterjmit awesome thx :) |
👍 🍰 |
Hi everyone,
Here is my proposal to fix #14, #12 and to improve this gem.
symfony.rake
filedeploy.rake
filesymfony:assetic:dump
command with configurable flagssymfony:assets:install
commandsymfony:assets:install
from the default hook structure. For projects usingSensioDistributionBundle
this task is already run during composer install.Thanks for your comments :)