We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15b75e0 commit 8f76454Copy full SHA for 8f76454
deploy.php
@@ -4,8 +4,9 @@
4
* PHP script for automatic code deployment directly from Github or Bitbucket to your server using webhooks
5
* Documentation: https://github.com/Lyquix/php-git-deploy
6
*/
7
-if (file_exists('deploy-config.php')) {
8
- require_once 'deploy-config.php';
+// Check if there is a configuration file
+if (file_exists(dirname(__FILE__) . '/deploy-config.php')) {
9
+ require_once dirname(__FILE__) . '/deploy-config.php';
10
} else {
11
die('File deploy-config.php does not exist');
12
}
0 commit comments