개발 Q&A

제목 php deployer 사용해보신 분 있나요??
글쓴이 orangeheim 작성시각 2016/05/30 21:31:46
댓글 : 1 추천 : 0 스크랩 : 0 조회수 : 10496   RSS

php deployer를 사용해보려고 하는데 사이트를 참고해도 도저히 모르겠네요 ㅠㅠ

composer를 이용하여 설치하고 손을 못대고 있습니다...

deployer 명령어인 

$ dep deploy production 를 입력하면 

-bash: dep: command not found 라고 뜨고... 설정파일 부분에서도 

 

<?php

// All Deployer recipes are based on `recipe/common.php`.
require 'recipe/symfony.php';

// Define a server for deployment.
// Let's name it "prod" and use port 22.
server('prod', 'host', 22)
    ->user('name')
    ->forwardAgent() // You can use identity key, ssh config, or username/password to auth on the server.
    ->stage('production')
    ->env('deploy_path', '/your/project/path'); // Define the base path to deploy your project to.

// Specify the repository from which to download your project's code.
// The server needs to have git installed for this to work.
// If you're not using a forward agent, then the server has to be able to clone
// your project from this repository.
set('repository', 'git@github.com:org/app.git');

server의 prod와 forwardAgent, stage에 뭘 입력하라는건지 알수가 없네요ㅠㅠ

고수님들 도와주세요!

 다음글 이그나이터 설치 (8)
 이전글 결재 플러그인 관련인데 아임포트란 플러그인 사용해서 결... (3)

댓글

변종원(웅파) / 2016/05/31 09:39:19 / 추천 0

뭐든 에러 메세지에 답이 있습니다. dep를 찾을 수 없다고 나오잖아요.

dep파일의 full path를 써주던지 리눅스 path에 해당 패스를 넣어서 어디서든지 실행하도록 해줘야합니다.