File tree Expand file tree Collapse file tree 3 files changed +28
-3
lines changed Expand file tree Collapse file tree 3 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ It does auto deploy your site to hosting
9
9
2 . Access to perform ** shell** commands
10
10
3 . Installed ** GIT** on target hosting
11
11
12
- # Start to use
12
+ # Start to use through composer
13
+
14
+ The main using through composer.
13
15
14
16
1 . Install package:
15
17
``` php
@@ -32,6 +34,29 @@ It does auto deploy your site to hosting
32
34
33
35
Do not forget to change the secret code ``ytJHvMHFdTYUryDhmJkjFjFiYk``
34
36
37
+ # Start to use through npm
38
+
39
+ If you making SPA and the files is located on a php hosting, then you can does auto deployment through the package.
40
+
41
+ 1. Install package:
42
+ ```bash
43
+ $ npm i git-auto-deploy-ex
44
+ ```
45
+
46
+ 2. Make file ``deploy.php`` with content:
47
+ ```php
48
+ <?php
49
+ require_once '\path\to\DeployApplication';
50
+ // Add secret code in the first parameter for protection
51
+ (new \optimistex\deploy\DeployApplication('ytJHvMHFdTYUryDhmJkjFjFiYk'))->run();
52
+ ```
53
+
54
+ 3. Configure WebHook for send request to:
55
+
56
+ http://your.domain/deploy.php?key=ytJHvMHFdTYUryDhmJkjFjFiYk
57
+
58
+ 4. Visit page ``http://your.domain/deploy.php`` to check log history
59
+
35
60
### Extended deploy with custom commands
36
61
37
62
For extended deployment make the file ``deploy.php`` with code:
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " optimistex/git-auto-deploy-ex" ,
3
- "version" : " 1.2.5 " ,
3
+ "version" : " 1.2.6 " ,
4
4
"type" : " library" ,
5
5
"description" : " The little project for auto-deploying projects to a hosting" ,
6
6
"keywords" : [
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " git-auto-deploy-ex" ,
3
- "version" : " 1.2.5 " ,
3
+ "version" : " 1.2.6 " ,
4
4
"description" : " The little project for auto-deploying projects to a hosting" ,
5
5
"main" : " index.js" ,
6
6
"directories" : {
You can’t perform that action at this time.
0 commit comments