cancel
Showing results for 
Search instead for 
Did you mean: 

add /vendor/ folder to repository & add /vendor/artifacts/ for commercial packages

0 Kudos

add /vendor/ folder to repository & add /vendor/artifacts/ for commercial packages

Feature request from mikebranderhorst, posted on GitHub Feb 22, 2016

In .gitignore:

/vendor
!/vendor/.htaccess

Should be:

/vendor/*
!/vendor/.htaccess

This way /vendor/.htaccess is added to (private) repository (and with deployment the folder is created).

Maybe also add the third line (to make adding commercial packages possible by artifact) https://getcomposer.org/doc/05-repositories.md#artifact

/vendor/*
!/vendor/.htaccess
!/vendor/artifacts/.htaccess
# uncomment when using a private repository and want to
# add artifact (commercial) packages to the repository
#!/vendor/artifacts/

Combined with an addition in composer.json (composer config repositories.artifacts artifact vendor/artifacts)

    "repositories": {
        "artifacts": {
            "type": "artifact",
            "url": "vendor/artifacts"
        }
    },

And to keep the folder adding the file /vendor/artifacts/.htaccess

1 Comment
jefflenz
Senior Member

this makes a lot of sense to make the site easily portable to dev/production environments