@@ -35,32 +35,31 @@ Configure Reverse DNS or RDNS on your server. This will allow you to ssh into
35
35
server using the domain name instead of the IP address.
36
36
:::
37
37
38
- Our ** deploy.php** recipe contains host definition with few important params:
38
+ Our ** deploy.php** recipe contains a host definition with few important params:
39
39
40
40
- ` remote_user ` user's name for ssh connection,
41
41
- ` deploy_path ` host's path where we are going to deploy.
42
42
43
- Let's set ` remote_user ` to be ` deployer ` . Right now our new server probably has
44
- only ` root ` user. The provision recipe will create and configure ` deployer ` user
45
- for us.
43
+ Let's set ` remote_user ` to be ` deployer ` . Right now our new server probably only has the ` root ` user. The provision recipe will
44
+ create and configure a ` deployer ` user for us.
46
45
47
46
``` php
48
47
host('example.org')
49
48
->set('remote_user', 'deployer')
50
49
->set('deploy_path', '~/example');
51
50
```
52
51
53
- To connect to remote host we need to specify identity key or private key.
54
- We can add our identity key directly into host definition, but better to put it
55
- in ** ~ /.ssh/config** file:
52
+ To connect to the remote host we need to specify an identity key or private key.
53
+ We can add our identity key directly into the host definition, but it's better to put it
54
+ in the ** ~ /.ssh/config** file:
56
55
57
56
```
58
57
Host *
59
58
IdentityFile ~/.ssh/id_rsa
60
59
```
61
60
62
- Now let's provision our server. As our host doesn't have user ` deployer ` .
63
- We are going to override ` remote_user ` for provision via ` -o remote_user=root ` .
61
+ Now let's provision our server. As our host doesn't have user ` deployer ` ,
62
+ we are going to override ` remote_user ` for provision via ` -o remote_user=root ` .
64
63
65
64
``` sh
66
65
dep provision -o remote_user=root
@@ -92,8 +91,8 @@ To deploy the project:
92
91
dep deploy
93
92
```
94
93
95
- If deploy failed, Deployer will print error message and command what was unsuccessful.
96
- Most likely we need to configure correct database credentials in _ .env_ file or similar.
94
+ If deploy failed, Deployer will print an error message and which command was unsuccessful.
95
+ Most likely we need to configure the correct database credentials in _ .env_ file or similar.
97
96
98
97
Ssh to the host, for example, for editing _ .env_ file:
99
98
@@ -102,13 +101,13 @@ dep ssh
102
101
```
103
102
104
103
After everything is configured properly we can resume our deployment from the
105
- place it stopped (But this is not required, we can just start a new deploy) :
104
+ place it stopped. However, this is not required; we can just start a new deploy:
106
105
107
106
```
108
107
dep deploy --start-from deploy:migrate
109
108
```
110
109
111
- After our first successful deployment, we can find next structure on our server:
110
+ After our first successful deployment, we can find the following directory structure on our server:
112
111
113
112
```
114
113
~/example // The deploy_path.
@@ -133,7 +132,7 @@ location / {
133
132
}
134
133
```
135
134
136
- If you're using provision recipe, Deployer will automatically configure Caddy
135
+ If you're using provision recipe, Deployer will automatically configure the Caddy
137
136
webserver to serve from the [ public_path] ( /docs/recipe/provision/website.md#public_path ) .
138
137
139
138
Now let's add a build step on our host:
0 commit comments