File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 21
21
define ('REMOTE_REPOSITORY ' , 'https://github.com/markomarkovic/simple-php-git-deploy.git ' );
22
22
23
23
/**
24
- * This is where the code resides on the local machine.
25
- * Don't forget the trailing slash!
24
+ * Which branch are we going to use for deployment.
26
25
*/
27
- define ('TARGET_DIR ' , '/tmp/simple-php-git-deploy/ ' );
26
+ define ('BRANCH ' , 'master ' );
28
27
29
28
/**
30
- * Which branch are we going to use for deployment.
29
+ * This is where the code resides on the local machine.
30
+ * Don't forget the trailing slash!
31
31
*/
32
- define ('BRANCH ' , 'master ' );
32
+ define ('TARGET_DIR ' , '/tmp/simple-php-git-deploy/ ' );
33
33
34
34
/**
35
35
* Weather to delete the files that are not in the repository but are on the
107
107
die (sprintf ('<b>%s</b> not available. It need to be installed on the server for this script to work. ' , $ command ));
108
108
} else {
109
109
$ binaries [$ command ] = $ path ;
110
+ $ version = explode ("\n" , shell_exec ($ path .' --version ' ));
110
111
printf ('<b>%s</b> : %s ' ."\n"
111
112
, $ path
112
- , explode ( "\n" , shell_exec ( $ path . ' -- version' )) [0 ]
113
+ , $ version [0 ]
113
114
);
114
115
}
115
116
}
175
176
);
176
177
177
178
// Run the commands
178
- $ output = '' ;
179
179
foreach ($ commands as $ command ) {
180
180
set_time_limit (TIME_LIMIT ); // Reset the time limit for each command
181
181
chdir (TMP_DIR ); // Ensure that we're in the right directory
You can’t perform that action at this time.
0 commit comments