在 Gandi.net 简单主机上使用 git 部署 GRAV 站点时出现问题
Issue when deploying GRAV site using git on Gandi.net simple hosting
我在 gandi.net 上使用 Grav and that I'm willing to deploy on my Simple hosting 实例准备了一个新站点。
我在我的 bitbucket 帐户上使用 git 保存了我的开发。一切都很好。
我已经配置了对简单托管的 git 访问权限。都还好。
但是当我部署我的 Grav 代码时(deploy command on Gandi 显然是本地 git 结帐),我所有的代码都部署在主机根目录下,此外 htdocs/ 而不是 进入 它。
然后我通过 git 更改了我的本地结构,以将我的所有代码包含到本地 htdocs 目录中。但是然后,在 Gandi 上部署它 returns 我收到以下消息:
initializing builder
......................builder ready
Vm password:
Grabbing terminal
Ok
-----> Starting new deployment (gare.humoeursvertes.net - master)
-----> Fetching application code
-----> Building new application
ERROR: composer.json and composer.lock files should be placed outside the htdocs directory (../htdocs/)
Dependencies could not be installed. Exiting...
Please refer to the documentation:
[fr] http://wiki.gandi.net/fr/simple/instance/php-mysql?&#composerlock
[en] http://wiki.gandi.net/en/simple/instance/php#dependency_management
-----> Building new application failed
-----> Aborting deployment
显然,我不能那样做 :-( 但是那有什么解决方案?我找不到任何解决方案,而且 Gandi 支持没有响应...
我假设我应该更改在 Gandi 上完成的部署(又名 git 结帐)的 target 目录,但找不到任何方法来这样做。欢迎任何提示!
谢谢,
泽维尔
解决方案比预期的要容易得多。这是因为 Grav 软件包附带 composer.json
和 composer.lock
配置文件,而 Gandi 不接受 htdocs 目录中的此类文件。
因此我不得不
- 将所有内容保存在 htdocs
目录中
- 但是我已经将这两个文件移到旁边(而不是里面)htdocs
然后部署就像一个魅力。 (与 symfony 部署相同的解决方案:http://rockstarninja.labak.xyz/gandi-sh-installation-de-symfony-3-2-sur-une-instance-simple-hosting-de-type-php-5-6/)。
我在 gandi.net 上使用 Grav and that I'm willing to deploy on my Simple hosting 实例准备了一个新站点。
我在我的 bitbucket 帐户上使用 git 保存了我的开发。一切都很好。 我已经配置了对简单托管的 git 访问权限。都还好。
但是当我部署我的 Grav 代码时(deploy command on Gandi 显然是本地 git 结帐),我所有的代码都部署在主机根目录下,此外 htdocs/ 而不是 进入 它。
然后我通过 git 更改了我的本地结构,以将我的所有代码包含到本地 htdocs 目录中。但是然后,在 Gandi 上部署它 returns 我收到以下消息:
initializing builder
......................builder ready
Vm password:
Grabbing terminal
Ok
-----> Starting new deployment (gare.humoeursvertes.net - master)
-----> Fetching application code
-----> Building new application
ERROR: composer.json and composer.lock files should be placed outside the htdocs directory (../htdocs/)
Dependencies could not be installed. Exiting...
Please refer to the documentation:
[fr] http://wiki.gandi.net/fr/simple/instance/php-mysql?&#composerlock
[en] http://wiki.gandi.net/en/simple/instance/php#dependency_management
-----> Building new application failed
-----> Aborting deployment
显然,我不能那样做 :-( 但是那有什么解决方案?我找不到任何解决方案,而且 Gandi 支持没有响应...
我假设我应该更改在 Gandi 上完成的部署(又名 git 结帐)的 target 目录,但找不到任何方法来这样做。欢迎任何提示! 谢谢, 泽维尔
解决方案比预期的要容易得多。这是因为 Grav 软件包附带 composer.json
和 composer.lock
配置文件,而 Gandi 不接受 htdocs 目录中的此类文件。
因此我不得不
- 将所有内容保存在 htdocs
目录中
- 但是我已经将这两个文件移到旁边(而不是里面)htdocs
然后部署就像一个魅力。 (与 symfony 部署相同的解决方案:http://rockstarninja.labak.xyz/gandi-sh-installation-de-symfony-3-2-sur-une-instance-simple-hosting-de-type-php-5-6/)。