Skip to content

Commit 080d089

Browse files
committed
Update getting-started.md
1 parent 55879f9 commit 080d089

File tree

1 file changed

+25
-28
lines changed

1 file changed

+25
-28
lines changed

docs/getting-started.md

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,76 +7,73 @@ What are we going to do in this tutorial:
77

88
Tutorial duration: **10 min**
99

10-
First, [install the Deployer](installation.md).
10+
First, [install the Deployer](installation.md):
1111

12-
Let's `cd` into our app repo and run following command:
12+
```sh
13+
curl -LO https://deployer.org/deployer.phar
14+
mv deployer.phar /usr/local/bin/dep
15+
chmod +x /usr/local/bin/dep
16+
```
17+
18+
Now lets cd into the project repo and run following command:
1319

1420
```
1521
dep init
1622
```
1723

1824
Deployer will ask you a few question and after finishing you will have a
19-
`deploy.php` or `deploy.yaml` file.
25+
**deploy.php** or **deploy.yaml** file.
2026

2127
All framework recipes based on [common](recipe/common.md) recipe.
2228

23-
## Provision a server
29+
## Provision
2430

2531
:::note
2632
If you already have configured webserver you may skip to
27-
[deployment](#configure-a-deployment).
33+
[deployment](#deploy).
2834
:::
2935

30-
Now let's create a new VPS on Linode, DigitalOcean, Vultr, AWS, GCP, etc.
31-
Make sure what image is `Ubuntu 20.04 LTS` as this version is supported via
36+
Now let's create a new VPS on Linode, DigitalOcean, Vultr, AWS, GCP, etc.
37+
38+
Make sure what image is **Ubuntu 20.04 LTS** as this version is supported via
3239
Deployer [provision](recipe/provision.md) recipe.
3340

34-
:::tip
3541
Configure Reverse DNS or RDNS on your server, this will allow you to ssh into
36-
server using domain name instead of IP address.
37-
:::
38-
39-
After VPS created, let's try to ssh as root:
40-
```
41-
42-
```
42+
server using domain name instead of IP address.
4343

4444
Now let's provision our server.
4545

4646
```
4747
dep provision -o remote_user=root
4848
```
4949

50-
:::note
51-
We added `-o remote_user=root` to make Deployer use root to connect to host for
52-
provisioning.
53-
:::
50+
We added `-o remote_user=root` to make Deployer use root user to connect to host
51+
for provisioning.
5452

55-
Deployer will ask you a few questions during provisioning like PHP version,
53+
Deployer will ask you a few questions during provisioning like php version,
5654
database type, etc.
5755

5856
Provision will take around **~5min** and install everything we need to run a
5957
site. Also, it will configure `deployer` user what we need to use to ssh to our
6058
host and a new website was configured at [deploy_path](recipe/common.md#deploy_path).
6159

62-
After we have configured webserver let's deploy our
63-
app.
60+
After we have configured webserver let's deploy the project.
6461

65-
## Configure a deployment
62+
## Deploy
6663

67-
Let's deploy our application:
64+
To deploy the project:
6865
```
6966
dep deploy
7067
```
7168

72-
Now we can ssh to host and edit, for example, `.env`.
69+
Ssh to host, for example, for editing _.env_ file.
7370

7471
```
7572
dep ssh
7673
```
7774

78-
Also let's add a build step on our host:
79-
```phpr
75+
Let's add a build step on our host:
76+
```php
8077
task('build', function () {
8178
cd('{{release_path}}');
8279
run('npm install');
@@ -86,7 +83,7 @@ task('build', function () {
8683
after('deploy:update_code', 'build');
8784
```
8885

89-
Also, Deployer has a useful task for examine what is currently deployed.
86+
Deployer has a useful task for examine what is currently deployed.
9087
```
9188
$ dep releases
9289
task releases

0 commit comments

Comments
 (0)