I created a local composer repo in order to re-use the code in several projects. That works fine. In my projects I have the following lines in composer.json
require": {
"php": "^7.2",
"myrepos/mytool": "dev-master"
},
and
"repositories": [
{
"type": "composer",
"url": "https://nova.laravel.com"
},
{
"type": "path",
"url": "../../packages/mytool",
"options": {
"symlink": true
}
}
]
But, when I want to deploy this to production, my server (obviously) is not able to pull the package.
I have pushed it into a private repo on github: https://github.com/myrepos/mytoo, but I have no idea how I can tell composer to use in repositories the local composer repo for my local dev environment and the github repo for my production server.
Can someone point me to a how-to?