Skip to main content
Formatted commands as code block so that the lines are broken properly.
Source Link

When cloning CE and deploying on Gandi servers, following their own instructions, the process is aborted with the error mentioned in the title.

Preconditions

  1. Magento 2.2.1 CE
  2. PHP7.1
  3. MySQL 5.6
  4. Gandi.net servers - simple hosting instance
  5. Local machine is ubuntu 16.04 x64

Steps to reproduce

  1. Following directions from gandi.net here and here.

    Following directions from gandi.net here and here.

  2. Enter following commands:

    Enter following commands:

     $ cd ~
     $ mkdir [VHOST_NAME]
     $ cd [VHOST_NAME]
     $ git remote add gandi git+ssh://[USER_ID]@git.[SERVER].gpaas.net/[VHOST_NAME].git
     $ composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition htdocs
     $ git add .
     $ git commit -m 'Install Magento 2'
     $ git push gandi master
     $ ssh [USER_ID]@git.[SERVER].gpaas.net deploy [VHOST_NAME].git
    

$ cd ~ $ mkdir [VHOST_NAME] $ cd [VHOST_NAME] $ git remote add gandi git+ssh://[USER_ID]@git.[SERVER].gpaas.net/[VHOST_NAME].git $ composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition htdocs $ git add . $ git commit -m 'Install Magento 2' $ git push gandi master $ ssh [USER_ID]@git.[SERVER].gpaas.net deploy [VHOST_NAME].git

Expected result

  1. 'Build complete' message should be seen in terminal.

Actual result

  1. Completed up to step 10 of 'Steps to reproduce' successfully.
  2. Step 11 fails with error message:

composer.json and composer.lock files should be placed outside the htdocs directory.

When cloning CE and deploying on Gandi servers, following their own instructions, the process is aborted with the error mentioned in the title.

Preconditions

  1. Magento 2.2.1 CE
  2. PHP7.1
  3. MySQL 5.6
  4. Gandi.net servers - simple hosting instance
  5. Local machine is ubuntu 16.04 x64

Steps to reproduce

  1. Following directions from gandi.net here and here.
  2. Enter following commands:

$ cd ~ $ mkdir [VHOST_NAME] $ cd [VHOST_NAME] $ git remote add gandi git+ssh://[USER_ID]@git.[SERVER].gpaas.net/[VHOST_NAME].git $ composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition htdocs $ git add . $ git commit -m 'Install Magento 2' $ git push gandi master $ ssh [USER_ID]@git.[SERVER].gpaas.net deploy [VHOST_NAME].git

Expected result

  1. 'Build complete' message should be seen in terminal.

Actual result

  1. Completed up to step 10 of 'Steps to reproduce' successfully.
  2. Step 11 fails with error message:

composer.json and composer.lock files should be placed outside the htdocs directory.

When cloning CE and deploying on Gandi servers, following their own instructions, the process is aborted with the error mentioned in the title.

Preconditions

  1. Magento 2.2.1 CE
  2. PHP7.1
  3. MySQL 5.6
  4. Gandi.net servers - simple hosting instance
  5. Local machine is ubuntu 16.04 x64

Steps to reproduce

  1. Following directions from gandi.net here and here.

  2. Enter following commands:

     $ cd ~
     $ mkdir [VHOST_NAME]
     $ cd [VHOST_NAME]
     $ git remote add gandi git+ssh://[USER_ID]@git.[SERVER].gpaas.net/[VHOST_NAME].git
     $ composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition htdocs
     $ git add .
     $ git commit -m 'Install Magento 2'
     $ git push gandi master
     $ ssh [USER_ID]@git.[SERVER].gpaas.net deploy [VHOST_NAME].git
    

Expected result

  1. 'Build complete' message should be seen in terminal.

Actual result

  1. Completed up to step 10 of 'Steps to reproduce' successfully.
  2. Step 11 fails with error message:

composer.json and composer.lock files should be placed outside the htdocs directory.

Source Link
Muckee
  • 709
  • 10
  • 39

Magento 2.2: Git deploy error following composer installation

When cloning CE and deploying on Gandi servers, following their own instructions, the process is aborted with the error mentioned in the title.

Preconditions

  1. Magento 2.2.1 CE
  2. PHP7.1
  3. MySQL 5.6
  4. Gandi.net servers - simple hosting instance
  5. Local machine is ubuntu 16.04 x64

Steps to reproduce

  1. Following directions from gandi.net here and here.
  2. Enter following commands:

$ cd ~ $ mkdir [VHOST_NAME] $ cd [VHOST_NAME] $ git remote add gandi git+ssh://[USER_ID]@git.[SERVER].gpaas.net/[VHOST_NAME].git $ composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition htdocs $ git add . $ git commit -m 'Install Magento 2' $ git push gandi master $ ssh [USER_ID]@git.[SERVER].gpaas.net deploy [VHOST_NAME].git

Expected result

  1. 'Build complete' message should be seen in terminal.

Actual result

  1. Completed up to step 10 of 'Steps to reproduce' successfully.
  2. Step 11 fails with error message:

composer.json and composer.lock files should be placed outside the htdocs directory.