docs: consistently reference node-js-app in the documentation
This commit is contained in:
1 parent
a9e8890fe1
commit
d65cea7d47
5 files changed
+28
-28
No files matched your search
@@ -8,10 +8,10 @@
|
|||||||
- A detailed list of template variables can be found [here](/docs/configuration/nginx.md#available-template-variables)
|
- A detailed list of template variables can be found [here](/docs/configuration/nginx.md#available-template-variables)
|
||||||
- A custom nginx-vhosts template must be named `nginx.conf.sigil`
|
- A custom nginx-vhosts template must be named `nginx.conf.sigil`
|
||||||
- The default path for this custom template is the root of your repo (i.e. `/app` in the container or `WORKDIR` if defined in a dockerfile app)
|
- The default path for this custom template is the root of your repo (i.e. `/app` in the container or `WORKDIR` if defined in a dockerfile app)
|
||||||
- Dokku no longer looks for this file in `/home/dokku/myapp` on the Dokku server
|
- Dokku no longer looks for this file in `/home/dokku/node-js-app` on the Dokku server
|
||||||
- Check out an example template [here](/docs/configuration/nginx.md)
|
- Check out an example template [here](/docs/configuration/nginx.md)
|
||||||
- Support for server-wide SSL certs have been dropped in favor of using the `certs` plugin
|
- Support for server-wide SSL certs have been dropped in favor of using the `certs` plugin
|
||||||
- `dokku certs:add myapp < certs.tar`
|
- `dokku certs:add node-js-app < certs.tar`
|
||||||
- All domains for an SSL-enabled app will be redirected to https by default
|
- All domains for an SSL-enabled app will be redirected to https by default
|
||||||
- This can be overridden with a custom template
|
- This can be overridden with a custom template
|
||||||
- Replaced "magic" `NO_VHOST` variable with `domains:enable/disable`
|
- Replaced "magic" `NO_VHOST` variable with `domains:enable/disable`
|
||||||
@@ -22,4 +22,4 @@
|
|||||||
|
|
||||||
- Dockerfiles with `EXPOSE` clauses will get [all **tcp** ports proxied by default](/docs/deployment/methods/dockerfiles.md#exposed-ports)
|
- Dockerfiles with `EXPOSE` clauses will get [all **tcp** ports proxied by default](/docs/deployment/methods/dockerfiles.md#exposed-ports)
|
||||||
- Note that nginx will proxy the same port numbers to listen publicly
|
- Note that nginx will proxy the same port numbers to listen publicly
|
||||||
- UDP ports can be exposed by disabling the [nginx proxy](/docs/advanced-usage/proxy-management.md) with `dokku proxy:disable myapp`
|
- UDP ports can be exposed by disabling the [nginx proxy](/docs/advanced-usage/proxy-management.md) with `dokku proxy:disable node-js-app`
|
||||||
@@ -48,7 +48,7 @@ If the `nginx-hostname` plugin has no output, the normal hostname algorithm will
|
|||||||
If desired, it is possible to disable vhosts with the domains plugin.
|
If desired, it is possible to disable vhosts with the domains plugin.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
dokku domains:disable myapp
|
dokku domains:disable node-js-app
|
||||||
```
|
```
|
||||||
|
|
||||||
On subsequent deploys, the nginx virtualhost will be discarded. This is useful when deploying internal-facing services that should not be publicly routeable. As of 0.4.0, nginx will still be configured to proxy your app on some random high port. This allows internal services to maintain the same port between deployments. You may change this port by setting `DOKKU_PROXY_PORT` and/or `DOKKU_PROXY_SSL_PORT` (for services configured to use SSL.)
|
On subsequent deploys, the nginx virtualhost will be discarded. This is useful when deploying internal-facing services that should not be publicly routeable. As of 0.4.0, nginx will still be configured to proxy your app on some random high port. This allows internal services to maintain the same port between deployments. You may change this port by setting `DOKKU_PROXY_PORT` and/or `DOKKU_PROXY_SSL_PORT` (for services configured to use SSL.)
|
||||||
@@ -57,22 +57,22 @@ On subsequent deploys, the nginx virtualhost will be discarded. This is useful w
|
|||||||
The domains plugin allows you to specify custom domains for applications. This plugin is aware of any ssl certificates that are imported via `certs:add`. Be aware that disabling domains (with `domains:disable`) will override any custom domains.
|
The domains plugin allows you to specify custom domains for applications. This plugin is aware of any ssl certificates that are imported via `certs:add`. Be aware that disabling domains (with `domains:disable`) will override any custom domains.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# where `myapp` is the name of your app
|
# where `node-js-app` is the name of your app
|
||||||
|
|
||||||
# add a domain to an app
|
# add a domain to an app
|
||||||
dokku domains:add myapp example.com
|
dokku domains:add node-js-app example.com
|
||||||
|
|
||||||
# list custom domains for app
|
# list custom domains for app
|
||||||
dokku domains myapp
|
dokku domains node-js-app
|
||||||
|
|
||||||
# clear all custom domains for app
|
# clear all custom domains for app
|
||||||
dokku domains:clear myapp
|
dokku domains:clear node-js-app
|
||||||
|
|
||||||
# remove a custom domain from app
|
# remove a custom domain from app
|
||||||
dokku domains:remove myapp example.com
|
dokku domains:remove node-js-app example.com
|
||||||
|
|
||||||
# set all custom domains for app
|
# set all custom domains for app
|
||||||
dokku domains:set myapp example.com example.org
|
dokku domains:set node-js-app example.com example.org
|
||||||
```
|
```
|
||||||
|
|
||||||
## Displaying domains reports about an app
|
## Displaying domains reports about an app
|
||||||
|
|||||||
@@ -53,13 +53,13 @@ include {{ .DOKKU_ROOT }}/{{ .APP }}/nginx.conf.d/*.conf;
|
|||||||
That means you can put additional configuration in separate files, for example to limit the uploaded body size to 50 megabytes, do
|
That means you can put additional configuration in separate files, for example to limit the uploaded body size to 50 megabytes, do
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
mkdir /home/dokku/myapp/nginx.conf.d/
|
mkdir /home/dokku/node-js-app/nginx.conf.d/
|
||||||
echo 'client_max_body_size 50m;' > /home/dokku/myapp/nginx.conf.d/upload.conf
|
echo 'client_max_body_size 50m;' > /home/dokku/node-js-app/nginx.conf.d/upload.conf
|
||||||
chown dokku:dokku /home/dokku/myapp/nginx.conf.d/upload.conf
|
chown dokku:dokku /home/dokku/node-js-app/nginx.conf.d/upload.conf
|
||||||
service nginx reload
|
service nginx reload
|
||||||
```
|
```
|
||||||
|
|
||||||
The example above uses additional configuration files directly on the Dokku host. Unlike the `nginx.conf.sigil` file, these additional files will not be copied over from your application repo, and thus need to be placed in the `/home/dokku/myapp/nginx.conf.d/` directory manually.
|
The example above uses additional configuration files directly on the Dokku host. Unlike the `nginx.conf.sigil` file, these additional files will not be copied over from your application repo, and thus need to be placed in the `/home/dokku/node-js-app/nginx.conf.d/` directory manually.
|
||||||
|
|
||||||
For PHP Buildpack users, you will also need to provide a `Procfile` and an accompanying `nginx.conf` file to customize the nginx config *within* the container. The following are example contents for your `Procfile`
|
For PHP Buildpack users, you will also need to provide a `Procfile` and an accompanying `nginx.conf` file to customize the nginx config *within* the container. The following are example contents for your `Procfile`
|
||||||
|
|
||||||
|
|||||||
@@ -286,7 +286,7 @@ git push dokku master
|
|||||||
|
|
||||||
```
|
```
|
||||||
-----> Cleaning up...
|
-----> Cleaning up...
|
||||||
-----> Building myapp from herokuish...
|
-----> Building node-js-app 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
|
||||||
@@ -296,8 +296,8 @@ git push dokku master
|
|||||||
|
|
||||||
-----> Discovering process types
|
-----> Discovering process types
|
||||||
Procfile declares types -> web
|
Procfile declares types -> web
|
||||||
-----> Releasing myapp...
|
-----> Releasing node-js-app...
|
||||||
-----> Deploying myapp...
|
-----> Deploying node-js-app...
|
||||||
-----> Running pre-flight checks
|
-----> Running pre-flight checks
|
||||||
-----> Attempt 1/6 Waiting for 10 seconds ...
|
-----> Attempt 1/6 Waiting for 10 seconds ...
|
||||||
CHECKS expected result:
|
CHECKS expected result:
|
||||||
@@ -315,7 +315,7 @@ curl: (7) Failed to connect to 172.17.0.155 port 5000: Connection refused
|
|||||||
CHECKS expected result:
|
CHECKS expected result:
|
||||||
http://localhost/check.txt => "simple_check"
|
http://localhost/check.txt => "simple_check"
|
||||||
-----> All checks successful!
|
-----> All checks successful!
|
||||||
=====> myapp container output:
|
=====> node-js-app container output:
|
||||||
=> Booting Thin
|
=> Booting Thin
|
||||||
=> Rails 4.2.0 application starting in production on http://0.0.0.0:5000
|
=> Rails 4.2.0 application starting in production on http://0.0.0.0:5000
|
||||||
=> Run `rails server -h` for more startup options
|
=> Run `rails server -h` for more startup options
|
||||||
@@ -323,7 +323,7 @@ curl: (7) Failed to connect to 172.17.0.155 port 5000: Connection refused
|
|||||||
Thin web server (v1.6.3 codename Protein Powder)
|
Thin web server (v1.6.3 codename Protein Powder)
|
||||||
Maximum connections set to 1024
|
Maximum connections set to 1024
|
||||||
Listening on 0.0.0.0:5000, CTRL+C to stop
|
Listening on 0.0.0.0:5000, CTRL+C to stop
|
||||||
=====> end myapp container output
|
=====> end node-js-app container output
|
||||||
-----> Running post-deploy
|
-----> Running post-deploy
|
||||||
-----> Configuring myapp.dokku.example.com...
|
-----> Configuring myapp.dokku.example.com...
|
||||||
-----> Creating http nginx.conf
|
-----> Creating http nginx.conf
|
||||||
@@ -360,7 +360,7 @@ git push dokku master
|
|||||||
|
|
||||||
```
|
```
|
||||||
-----> Cleaning up...
|
-----> Cleaning up...
|
||||||
-----> Building myapp from herokuish...
|
-----> Building node-js-app 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
|
||||||
@@ -370,8 +370,8 @@ git push dokku master
|
|||||||
|
|
||||||
Discovering process types
|
Discovering process types
|
||||||
Procfile declares types -> web
|
Procfile declares types -> web
|
||||||
Releasing myapp...
|
Releasing node-js-app...
|
||||||
Deploying myapp...
|
Deploying node-js-app...
|
||||||
Running pre-flight checks
|
Running pre-flight checks
|
||||||
-----> Attempt 1/6 Waiting for 10 seconds ...
|
-----> Attempt 1/6 Waiting for 10 seconds ...
|
||||||
CHECKS expected result:
|
CHECKS expected result:
|
||||||
@@ -410,7 +410,7 @@ curl: (22) The requested URL returned error: 500 Internal Server Error
|
|||||||
curl: (22) The requested URL returned error: 500 Internal Server Error
|
curl: (22) The requested URL returned error: 500 Internal Server Error
|
||||||
Could not start due to 1 failed checks.
|
Could not start due to 1 failed checks.
|
||||||
! Check attempt 6/6 failed.
|
! Check attempt 6/6 failed.
|
||||||
=====> myapp container output:
|
=====> node-js-app container output:
|
||||||
=> Booting Thin
|
=> Booting Thin
|
||||||
=> Rails 4.2.0 application starting in production on http://0.0.0.0:5000
|
=> Rails 4.2.0 application starting in production on http://0.0.0.0:5000
|
||||||
=> Run `rails server -h` for more startup options
|
=> Run `rails server -h` for more startup options
|
||||||
@@ -431,7 +431,7 @@ Could not start due to 1 failed checks.
|
|||||||
vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:242:in `initialize'
|
vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:242:in `initialize'
|
||||||
vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `new'
|
vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `new'
|
||||||
vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `postgresql_connection
|
vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `postgresql_connection
|
||||||
=====> end myapp container output
|
=====> end node-js-app container output
|
||||||
/usr/bin/dokku: line 49: 23409 Killed dokku deploy "$APP"
|
/usr/bin/dokku: line 49: 23409 Killed dokku deploy "$APP"
|
||||||
To dokku@dokku.example.com:myapp
|
To dokku@dokku.example.com:myapp
|
||||||
! [remote rejected] dokku -> master (pre-receive hook declined)
|
! [remote rejected] dokku -> master (pre-receive hook declined)
|
||||||
|
|||||||
@@ -28,15 +28,15 @@ Don't be afraid to ask if you need help. Create a [new issue](https://github.co
|
|||||||
|
|
||||||
For the examples, we will use the domain name `example.tld` and the IP address `127.0.0.1`.
|
For the examples, we will use the domain name `example.tld` and the IP address `127.0.0.1`.
|
||||||
|
|
||||||
Dokku uses DNS to differentiate between apps on your dokku-powered server. If you are using the domain `example.tld`, and you have two apps `myapp1` and `myapp2`, Dokku will make them available at `myapp1.example.tld` and `myapp2.example.tld`.
|
Dokku uses DNS to differentiate between apps on your dokku-powered server. If you are using the domain `example.tld`, and you have two apps `node-js-app1` and `node-js-app2`, Dokku will make them available at `node-js-app1.example.tld` and `node-js-app2.example.tld`.
|
||||||
|
|
||||||
To get started, you need to know the IP address of your Dokku server. Connect to it and run `ifconfig` or `ip addr` to see the IP address.
|
To get started, you need to know the IP address of your Dokku server. Connect to it and run `ifconfig` or `ip addr` to see the IP address.
|
||||||
|
|
||||||
Now you have to make a decision about your domain. Do you want everything and anything at `example.tld` to go to your Dokku server, or would you rather use a 'sub domain' for your Dokku server?
|
Now you have to make a decision about your domain. Do you want everything and anything at `example.tld` to go to your Dokku server, or would you rather use a 'sub domain' for your Dokku server?
|
||||||
|
|
||||||
In other words, do you want your applications on your Dokku server accessible via `myapp.example.tld` or via `myapp.myserver.example.tld`?
|
In other words, do you want your applications on your Dokku server accessible via `node-js-app.example.tld` or via `node-js-app.myserver.example.tld`?
|
||||||
|
|
||||||
#### Using a sub-domain (myapp.myserver.example.tld)
|
#### Using a sub-domain (node-js-app.myserver.example.tld)
|
||||||
|
|
||||||
Using a sub-domain is easy. When you set up your server, you probably gave it a name like `myserver.example.tld`.
|
Using a sub-domain is easy. When you set up your server, you probably gave it a name like `myserver.example.tld`.
|
||||||
|
|
||||||
@@ -71,7 +71,7 @@ If they all return your IP address, you have set DNS up properly for dokku. You
|
|||||||
|
|
||||||
Proceed with the setup instructions in the [installation documentation](/docs/getting-started/installation.md)
|
Proceed with the setup instructions in the [installation documentation](/docs/getting-started/installation.md)
|
||||||
|
|
||||||
#### Using the root of your domain (myapp.example.tld)
|
#### Using the root of your domain (node-js-app.example.tld)
|
||||||
|
|
||||||
This section is a work in progress. It is incomplete.
|
This section is a work in progress. It is incomplete.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user