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

using composer for download and update of shopware #11

Open
rawdlite opened this issue Sep 23, 2019 · 2 comments
Open

using composer for download and update of shopware #11

rawdlite opened this issue Sep 23, 2019 · 2 comments

Comments

@rawdlite
Copy link

What about using a composer based install?
I am thinking of

  • cloning shopware/composer-project
  • adapt content of .env and composer.json (for different shopware versions)
  • run composer install/update

By using composer we could handle dependencies effectively.
What is your take on this?

cheers tom

@rawdlite
Copy link
Author

So far i have this and it seems to work:

/**
 * composer based install
 */
task(
    'shopware:install',
    function () {
        run('mkdir {{shopware_temp_dir}}');
        run('cd {{shopware_temp_dir}} && git clone https://github.com/shopware/composer-project.git');
        run('rsync --recursive --ignore-existing {{shopware_temp_dir}}/composer-project/ {{shopware_public_path}}/');
        run('rm -rf {{shopware_temp_dir}}');
        run('cd {{shopware_public_path}} && composer install');
    }
)->desc('checkout shopware composer project');

This assumes there is a composer.json in repositories web folder.
(taken from shopware/composer-project)
The shopware version can be set in the require setting.
As well as adding requirements
"k10r/staging": "1.0.3",
"k10r/deployment": "1.2.0"
in that composer.json.
I could do a PR if that helps.

Cheers tom

@kleinmann
Copy link
Member

Hi Tom!

We're currently not using this setup for composer-based Shopware environments. If this works for you, feel free to create a PR with a separate deploy-shopware-composer.php augmenting the base configuration with your composer-specific tasks :-)

It may however be more suited for a fork, as we'll probably not be able to maintain that configuration.

Best regards
Uwe

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

No branches or pull requests

2 participants