Y
Y
Yuri2018-08-31 03:53:54
Composer
Yuri, 2018-08-31 03:53:54

How to make composer look for a package in its repositories when creating-project?

Good day!
Available:

  1. Private repository in bitbucket;
  2. Server(s) where you need to deploy the software from the repository and update it periodically via cron;
  3. A pair of rsa keys was generated on the server, private was added to the ssh config for the bitbucket.com domain;
  4. Added public key in repository settings.
Needed:
Deploy software from the repository using the command:
composer create-project vendor/name /home
Actually, how to slip a list with your repositories at the create-project stage is unknown.
Creating a composer.json file with the following content partially solved the problem - it downloads, but to the vendor directory, and is not deployed as a project.
{
  "require": {
    "vendor/name": "dev-master"
  },
  "repositories": [
    {
      "type": "vcs",
      "url":  "[email protected]:vendor/name.git"
    }
  ],
}

Perhaps someone came across and can advise?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question