将新的luya kickstarter-pack部署到新的LAMP服务器

时间:2019-04-18 19:49:28

标签: php git github deployment

我正在尝试将LUYA CMS的新Kickstarter包部署到LAMP服务器。我使用了官方网站上的指南,但是在部署期间,状态出现错误。这是我的配置:

// define your configuration here
server('prod', 'ip', 22)
    ->user('user')
    ->password('password') // You can use identity key, ssh config, or username/password to auth on the server.
    ->stage('prod')
    ->env('deploy_path', '/home/pi/luya/'); // Define the base path to deploy your project to.

set('repository', 'https://user:pass@github.com/user/luya.git');

这是日志:

$ ./vendor/bin/dep luya prod -vvv
➤ Executing task deploy:prepare
↳ on [prod]
> echo $0
< bash
< 
> if [ ! -d /home/pi/luya/ ]; then mkdir -p /home/pi/luya/; fi
> if [ ! -L /home/pi/luya//current ] && [ -d /home/pi/luya//current ]; then echo true; fi
> cd /home/pi/luya/ && if [ ! -d releases ]; then mkdir releases; fi
> cd /home/pi/luya/ && if [ ! -d shared ]; then mkdir shared; fi
• done on [prod]
✔ Ok [917ms]
➤ Executing task deploy:release
↳ on [prod]
> if [ -d /home/pi/luya//releases/20190418193704 ]; then echo 'true'; fi
> mkdir /home/pi/luya//releases/20190418193704
> cd /home/pi/luya/ && if [ -h release ]; then rm release; fi
> ln -s /home/pi/luya//releases/20190418193704 /home/pi/luya//release
• done on [prod]
✔ Ok [273ms]
➤ Executing task deploy:update_code
↳ on [prod]
> which git

In PhpSecLib.php line 124:

  [RuntimeException]  

异常跟踪:      ()在C:\ xampp \ htdocs \ l.site1.com \ luya-kickstarter \ vendor \ deployer \ deployer \ src \ Server \ Remote \ PhpSecLib.php:124      Deployer \ Server \ Remote \ PhpSecLib-> run()位于C:\ xampp \ htdocs \ l.site1.com \ luya-kickstarter \ vendor \ deployer \ deployer \ src \ functions.php:296      在C:\ xampp \ htdocs \ l.site1.com \ luya-kickstarter \ vendor \ deployer \ deployer \ recipe \ common.php中运行():54      {closure}()at n / a:n / a      C:\ xampp \ htdocs \ l.site1.com \ luya-kickstarter \ vendor \ deployer \ deployer \ src \ Server \ Environment.php:101上的call_user_func()      Deployer \ Server \ Environment-> get()位于C:\ xampp \ htdocs \ l.site1.com \ luya-kickstarter \ vendor \ deployer \ deployer \ src \ functions.php:573      env()位于C:\ xampp \ htdocs \ l.site1.com \ luya-kickstarter \ vendor \ deployer \ deployer \ recipe \ common.php:176      {closure}()at n / a:n / a      在C:\ xampp \ htdocs \ l.site1.com \ luya-kickstarter \ vendor \ deployer \ deployer \ src \ Task \ Task.php:79上的call_user_func()      Deployer \ Task \ Task-> run()位于C:\ xampp \ htdocs \ l.site1.com \ luya-kickstarter \ vendor \ deployer \ deployer \ src \ Executor \ SeriesExecutor.php:43      Deployer \ Executor \ SeriesExecutor-> run(),位于C:\ xampp \ htdocs \ l.site1.com \ luya-kickstarter \ vendor \ deployer \ deployer \ src \ Console \ TaskCommand.php:82      Deployer \ Console \ TaskCommand-> execute()位于C:\ xampp \ htdocs \ l.site1.com \ luya-kickstarter \ vendor \ symfony \ console \ Command \ Command.php:255      Symfony \ Component \ Console \ Command \ Command-> run()位于C:\ xampp \ htdocs \ l.site1.com \ luya-kickstarter \ vendor \ symfony \ console \ Application.php:960      Symfony \ Component \ Console \ Application-> doRunCommand()位于C:\ xampp \ htdocs \ l.site1.com \ luya-kickstarter \ vendor \ symfony \ console \ Application.php:255      Symfony \ Component \ Console \ Application-> doRun()位于C:\ xampp \ htdocs \ l.site1.com \ luya-kickstarter \ vendor \ symfony \ console \ Application.php:148      Symfony \ Component \ Console \ Application-> run()位于C:\ xampp \ htdocs \ l.site1.com \ luya-kickstarter \ vendor \ deployer \ deployer \ src \ Deployer.php:101      Deployer \ Deployer-> run()位于C:\ xampp \ htdocs \ l.site1.com \ luya-kickstarter \ vendor \ deployer \ deployer \ bin \ dep:64

luya [-p|--parallel]

1 个答案:

答案 0 :(得分:0)

似乎此服务器上未安装Git。为了运行LUYA部署程序,GIT命令必须可用。