我正在尝试将我的新的Kickstarter包LUYA CMS部署到LAMP服务器。我使用了官方网站上的指南,但在部署过程中,state出现错误。下面是我的配置:
// 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] 异常跟踪:() at C:\xampp\htdocs\l.site1.com\luya-kickstarter\vendor\deployer\deployer\src\Server\Remote\PhpSecLib.php:124 Deployer\Server\Remote\PhpSecLib->run() at C:\xampp\htdocs\l.site1.com\luya-kickstarter\vendor\deployer\deployer\src\functions.php:296 run() at C:\xampp\htdocs\l.site1.com\luya-kickstarter\vendor\deployer\deployer\recipe\common.php:54 {closure}() at n/a:n/a :n/a C:\xampp\htdocs\l.site1.com\luya-kickstarter\vendor\deployer\deployer\src\Server\Environment.php:101 Deployer\Server\Environment->get() at C:\xampp\htdocs\l.site1.com\luya-kickstarter\vendor\deployer\deployer\src\functions.php:573 env() at C:\xampp\htdocs\l.site1。N/a处的com\luya-kickstarter\vendor\deployer\deployer\recipe\common.php:176 {closure}():n/a处的C:\xampp\htdocs\l.site1.com\luya-kickstarter\vendor\deployer\deployer\src\Task\Task.php:79 Deployer\任务\任务-> C:\xampp\htdocs\l.site1.com\luya-kickstarter\vendor\deployer\deployer\src\Executor\SeriesExecutor.php:处的call_user_func()43Deployer\Executor\SeriesExecutor->在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\在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\ vendor\symfony\console\Application.php:960 ->run() at C:\xampp\htdocs\l.site1运行应用程序。C:\xampp\htdocs\l.site1.com\luya-kickstarter\vendor\deployer\deployer\bin\dep:64上的com\luya-kickstarter\vendor\deployer\deployer\src\Deployer.php:101部署程序\部署程序->run()
luya [-p|--parallel]发布于 2019-05-14 21:46:24
此服务器上似乎未安装Git。为了运行LUYA部署程序,GIT命令必须可用。
https://stackoverflow.com/questions/55752874
复制相似问题