Skip to content

Commit 26aebcb

Browse files
committed
update readme
1 parent efd6b97 commit 26aebcb

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,28 @@ It does auto deploy your site to hosting
3030

3131
4. Visit page ``http://your.domain/deploy.php`` for check log history
3232

33-
Do not forget to change the secret code ``ytJHvMHFdTYUryDhmJkjFjFiYk``
33+
Do not forget to change the secret code ``ytJHvMHFdTYUryDhmJkjFjFiYk``
34+
35+
### Extended deploy with custom commands
36+
37+
For extended deployment make the file ``deploy.php`` with code:
38+
39+
```php
40+
<?php
41+
42+
use optimistex\deploy\ShellHelper;
43+
use optimistex\deploy\DeployApplication;
44+
45+
require_once 'vendor/autoload.php';
46+
47+
$app = new DeployApplication('security_key');
48+
$app->begin();
49+
$app->execute([ // executing custom commands
50+
'git branch',
51+
'git pull',
52+
ShellHelper::php() . ' composer.phar install', // install packages
53+
]);
54+
$app->end();
55+
```
56+
57+
``ShellHelper::php()`` - equal ``php``, but used becouse just "php" not working!

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "optimistex/git-auto-deploy-ex",
3-
"version": "1.0.4.2",
3+
"version": "1.0.4.3",
44
"type": "library",
55
"description": "The little project for auto-deploying projects to a hosting",
66
"keywords": [

0 commit comments

Comments
 (0)