File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -30,4 +30,28 @@ It does auto deploy your site to hosting
30
30
31
31
4. Visit page ``http://your.domain/deploy.php`` for check log history
32
32
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!
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " optimistex/git-auto-deploy-ex" ,
3
- "version" : " 1.0.4.2 " ,
3
+ "version" : " 1.0.4.3 " ,
4
4
"type" : " library" ,
5
5
"description" : " The little project for auto-deploying projects to a hosting" ,
6
6
"keywords" : [
You can’t perform that action at this time.
0 commit comments