Skip to content

Commit 8f76454

Browse files
Add path for configuration file
1 parent 15b75e0 commit 8f76454

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deploy.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
* PHP script for automatic code deployment directly from Github or Bitbucket to your server using webhooks
55
* Documentation: https://github.com/Lyquix/php-git-deploy
66
*/
7-
if (file_exists('deploy-config.php')) {
8-
require_once 'deploy-config.php';
7+
// Check if there is a configuration file
8+
if (file_exists(dirname(__FILE__) . '/deploy-config.php')) {
9+
require_once dirname(__FILE__) . '/deploy-config.php';
910
} else {
1011
die('File deploy-config.php does not exist');
1112
}

0 commit comments

Comments
 (0)