Merge pull request #3512 from Mayeu/patch-1
docs: fix the deploy tutorial
This commit is contained in:
@@ -10,7 +10,7 @@ Once Dokku has been configured with at least one user, applications can be deplo
|
|||||||
```shell
|
```shell
|
||||||
# from your local machine
|
# from your local machine
|
||||||
# SSH access to github must be enabled on this host
|
# SSH access to github must be enabled on this host
|
||||||
git clone git@github.com:heroku/ruby-rails-sample.git
|
git clone git@github.com:heroku/ruby-getting-started.git
|
||||||
```
|
```
|
||||||
|
|
||||||
### Create the app
|
### Create the app
|
||||||
@@ -19,7 +19,7 @@ Create the application on the Dokku host. You will need to SSH onto the host to
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
# on the Dokku host
|
# on the Dokku host
|
||||||
dokku apps:create ruby-rails-sample
|
dokku apps:create ruby-getting-started
|
||||||
```
|
```
|
||||||
|
|
||||||
### Create the backing services
|
### Create the backing services
|
||||||
@@ -45,7 +45,7 @@ Once the service creation is complete, set the `DATABASE_URL` environment variab
|
|||||||
```shell
|
```shell
|
||||||
# on the Dokku host
|
# on the Dokku host
|
||||||
# each official datastore offers a `link` method to link a service to any application
|
# each official datastore offers a `link` method to link a service to any application
|
||||||
dokku postgres:link railsdatabase ruby-rails-sample
|
dokku postgres:link railsdatabase ruby-getting-started
|
||||||
```
|
```
|
||||||
|
|
||||||
> You can link a single service to multiple applications or use one service per application.
|
> You can link a single service to multiple applications or use one service per application.
|
||||||
@@ -55,18 +55,18 @@ dokku postgres:link railsdatabase ruby-rails-sample
|
|||||||
> Warning: Your application *should* respect the `PORT` environment variable or it may not respond to web requests.
|
> Warning: Your application *should* respect the `PORT` environment variable or it may not respond to web requests.
|
||||||
> Please see the [port management documentation](/docs/networking/port-management.md) for details.
|
> Please see the [port management documentation](/docs/networking/port-management.md) for details.
|
||||||
|
|
||||||
Now you can deploy the `ruby-rails-sample` app to your Dokku server. All you have to do is add a remote to name the app. Applications are created on-the-fly on the Dokku server.
|
Now you can deploy the `ruby-getting-started` app to your Dokku server. All you have to do is add a remote to name the app. Applications are created on-the-fly on the Dokku server.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# from your local machine
|
# from your local machine
|
||||||
# the remote username *must* be dokku or pushes will fail
|
# the remote username *must* be dokku or pushes will fail
|
||||||
cd ruby-rails-sample
|
cd ruby-getting-started
|
||||||
git remote add dokku dokku@dokku.me:ruby-rails-sample
|
git remote add dokku dokku@dokku.me:ruby-getting-started
|
||||||
git push dokku master
|
git push dokku master
|
||||||
```
|
```
|
||||||
|
|
||||||
> Note: Some tools may not support the short-upstream syntax referenced above, and you may need to prefix
|
> Note: Some tools may not support the short-upstream syntax referenced above, and you may need to prefix
|
||||||
> the upstream with the scheme `ssh://` like so: `ssh://dokku@dokku.me:ruby-rails-sample`
|
> the upstream with the scheme `ssh://` like so: `ssh://dokku@dokku.me:ruby-getting-started`
|
||||||
> Please see the [Git](https://git-scm.com/docs/git-clone#_git_urls_a_id_urls_a) documentation for more details.
|
> Please see the [Git](https://git-scm.com/docs/git-clone#_git_urls_a_id_urls_a) documentation for more details.
|
||||||
|
|
||||||
> Note: Your private key should be registered with ssh-agent in local development. If you get a
|
> Note: Your private key should be registered with ssh-agent in local development. If you get a
|
||||||
@@ -80,7 +80,7 @@ Compressing objects: 100% (162/162), done.
|
|||||||
Writing objects: 100% (231/231), 36.96 KiB | 0 bytes/s, done.
|
Writing objects: 100% (231/231), 36.96 KiB | 0 bytes/s, done.
|
||||||
Total 231 (delta 93), reused 147 (delta 53)
|
Total 231 (delta 93), reused 147 (delta 53)
|
||||||
-----> Cleaning up...
|
-----> Cleaning up...
|
||||||
-----> Building ruby-rails-sample from herokuish...
|
-----> Building ruby-getting-started from herokuish...
|
||||||
-----> Adding BUILD_ENV to build environment...
|
-----> Adding BUILD_ENV to build environment...
|
||||||
-----> Ruby app detected
|
-----> Ruby app detected
|
||||||
-----> Compiling Ruby/Rails
|
-----> Compiling Ruby/Rails
|
||||||
@@ -95,7 +95,7 @@ Total 231 (delta 93), reused 147 (delta 53)
|
|||||||
...
|
...
|
||||||
|
|
||||||
=====> Application deployed:
|
=====> Application deployed:
|
||||||
http://ruby-rails-sample.dokku.me
|
http://ruby-getting-started.dokku.me
|
||||||
```
|
```
|
||||||
|
|
||||||
When the deploy finishes, the application's URL will be shown as seen above.
|
When the deploy finishes, the application's URL will be shown as seen above.
|
||||||
@@ -109,7 +109,7 @@ If you only want to rebuild and tag a container, you can skip the deployment pha
|
|||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
# on the Dokku host
|
# on the Dokku host
|
||||||
dokku config:set ruby-rails-sample DOKKU_SKIP_DEPLOY=true
|
dokku config:set ruby-getting-started DOKKU_SKIP_DEPLOY=true
|
||||||
```
|
```
|
||||||
|
|
||||||
### Redeploying or restarting
|
### Redeploying or restarting
|
||||||
@@ -118,7 +118,7 @@ If you need to redeploy (or restart) your app:
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
# on the Dokku host
|
# on the Dokku host
|
||||||
dokku ps:rebuild ruby-rails-sample
|
dokku ps:rebuild ruby-getting-started
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [process scaling documentation](/docs/deployment/process-management.md) for more information.
|
See the [process scaling documentation](/docs/deployment/process-management.md) for more information.
|
||||||
@@ -143,13 +143,13 @@ The name of remote repository is used as the name of application to be deployed,
|
|||||||
```shell
|
```shell
|
||||||
# from your local machine
|
# from your local machine
|
||||||
# the remote username *must* be dokku or pushes will fail
|
# the remote username *must* be dokku or pushes will fail
|
||||||
git remote add dokku dokku@dokku.me:ruby-rails-sample
|
git remote add dokku dokku@dokku.me:ruby-getting-started
|
||||||
git push dokku master
|
git push dokku master
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
remote: -----> Application deployed:
|
remote: -----> Application deployed:
|
||||||
remote: http://ruby-rails-sample.dokku.me
|
remote: http://ruby-getting-started.dokku.me
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also specify fully qualified names, say `app.dokku.me`, as
|
You can also specify fully qualified names, say `app.dokku.me`, as
|
||||||
|
|||||||
Reference in New Issue
Block a user