-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.sample.php
12 lines (11 loc) · 1.13 KB
/
deploy.sample.php
1
2
3
4
5
6
7
8
9
10
11
12
<?php
define("TOKEN", "secret-token"); // The secret token to add as a GitHub or GitLab secret, or otherwise as https://www.example.com/?token=secret-token
define("REMOTE_REPOSITORY", "git@github.com:username/repository.git"); // The SSH URL to your repository
define("DIR", "/var/www/vhosts/repository/"); // The path to your repostiroy; this must begin with a forward slash (/)
define("BRANCH", "refs/heads/master"); // The branch route
define("LOGFILE", "deploy.log"); // The name of the file you want to log to.
define("GIT", "/usr/bin/git"); // The path to the git executable
define("MAX_EXECUTION_TIME", 180); // Override for PHP's max_execution_time (may need set in php.ini)
define("BEFORE_PULL", ""); // A command to execute before pulling
define("AFTER_PULL", ""); // A command to execute after successfully pulling
require_once("deployer.php");