Use shell keyword for codeblock guard
This commit is contained in:
@@ -85,6 +85,6 @@ This is in particular useful, then you want to deploy to root domain, as
|
|||||||
|
|
||||||
SSH onto the server, then execute:
|
SSH onto the server, then execute:
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
dokku delete myapp
|
dokku delete myapp
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ Ubuntu 14.04 x64 x64. Ideally have a domain ready to point to your host. It's de
|
|||||||
|
|
||||||
To install the latest stable version of dokku, you can run the following bootstrapper command:
|
To install the latest stable version of dokku, you can run the following bootstrapper command:
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
wget -qO- https://raw.github.com/progrium/dokku/v0.3.9/bootstrap.sh | sudo DOKKU_TAG=v0.3.9 bash
|
wget -qO- https://raw.github.com/progrium/dokku/v0.3.9/bootstrap.sh | sudo DOKKU_TAG=v0.3.9 bash
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ That's it!
|
|||||||
|
|
||||||
### Development via bash script
|
### Development via bash script
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh | sudo bash
|
wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh | sudo bash
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -41,7 +41,7 @@ You may also wish to take a look at the [advanced installation](http://progrium.
|
|||||||
If you plan on developing dokku, the easiest way to install from your own repository is cloning
|
If you plan on developing dokku, the easiest way to install from your own repository is cloning
|
||||||
the repository and calling the install script. Example:
|
the repository and calling the install script. Example:
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
git clone https://github.com/yourusername/dokku.git
|
git clone https://github.com/yourusername/dokku.git
|
||||||
cd dokku
|
cd dokku
|
||||||
sudo make install
|
sudo make install
|
||||||
@@ -52,7 +52,7 @@ repositories. The `DOCKER_URL`, `PLUGINHOOK_URL`, `SSHCOMMAND_URL` and `STACK_UR
|
|||||||
environment variables may be set to override the defaults (see the `Makefile` for how these
|
environment variables may be set to override the defaults (see the `Makefile` for how these
|
||||||
apply). Example:
|
apply). Example:
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
sudo SSHCOMMAND_URL=https://raw.github.com/yourusername/sshcommand/master/sshcommand make install
|
sudo SSHCOMMAND_URL=https://raw.github.com/yourusername/sshcommand/master/sshcommand make install
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ sudo SSHCOMMAND_URL=https://raw.github.com/yourusername/sshcommand/master/sshcom
|
|||||||
The bootstrap script allows the dokku repository URL to be overridden to bootstrap a host from
|
The bootstrap script allows the dokku repository URL to be overridden to bootstrap a host from
|
||||||
your own clone of dokku using the `DOKKU_REPO` environment variable. Example:
|
your own clone of dokku using the `DOKKU_REPO` environment variable. Example:
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
wget https://raw.github.com/progrium/dokku/master/bootstrap.sh
|
wget https://raw.github.com/progrium/dokku/master/bootstrap.sh
|
||||||
chmod +x bootstrap.sh
|
chmod +x bootstrap.sh
|
||||||
sudo DOKKU_REPO=https://github.com/yourusername/dokku.git ./bootstrap.sh
|
sudo DOKKU_REPO=https://github.com/yourusername/dokku.git ./bootstrap.sh
|
||||||
@@ -73,7 +73,7 @@ Dokku ships with a pre-built version of the [buildstep](https://github.com/progr
|
|||||||
default. If you want to build your own version you can specify that with an env
|
default. If you want to build your own version you can specify that with an env
|
||||||
variable.
|
variable.
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
git clone https://github.com/progrium/dokku.git
|
git clone https://github.com/progrium/dokku.git
|
||||||
cd dokku
|
cd dokku
|
||||||
sudo BUILD_STACK=true make install
|
sudo BUILD_STACK=true make install
|
||||||
@@ -141,7 +141,7 @@ Deploy using the following StackScript:
|
|||||||
|
|
||||||
* Run the following commands:
|
* Run the following commands:
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
apt-get install lxc wget bsdtar linux-image-extra-$(uname -r)
|
apt-get install lxc wget bsdtar linux-image-extra-$(uname -r)
|
||||||
@@ -150,6 +150,6 @@ Deploy using the following StackScript:
|
|||||||
```
|
```
|
||||||
* After this, you can install dokku the default way:
|
* After this, you can install dokku the default way:
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh | sudo bash
|
wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh | sudo bash
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ The `subdomain` is inferred from the pushed application name, while the `domain`
|
|||||||
|
|
||||||
You can optionally override this in a plugin by implementing the `nginx-hostname` pluginhook. For example, you can reverse the subdomain with the following sample `nginx-hostname` pluginhook:
|
You can optionally override this in a plugin by implementing the `nginx-hostname` pluginhook. For example, you can reverse the subdomain with the following sample `nginx-hostname` pluginhook:
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ Let's take a quick look at the current dokku nginx plugin that's shipped with do
|
|||||||
|
|
||||||
## Installing a plugin
|
## Installing a plugin
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
cd /var/lib/dokku/plugins
|
cd /var/lib/dokku/plugins
|
||||||
git clone <git url>
|
git clone <git url>
|
||||||
dokku plugins-install
|
dokku plugins-install
|
||||||
@@ -32,7 +32,7 @@ If you create your own plugin:
|
|||||||
|
|
||||||
The below plugin is a dummy `dokku hello` plugin. If your plugin exposes commands, this is a good template for your `commands` file:
|
The below plugin is a dummy `dokku hello` plugin. If your plugin exposes commands, this is a good template for your `commands` file:
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ RequestTTY yes
|
|||||||
|
|
||||||
It's possible to run commands in the environment of the deployed application:
|
It's possible to run commands in the environment of the deployed application:
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
dokku run node-js-app ls -alh
|
dokku run node-js-app ls -alh
|
||||||
dokku run <app> <cmd>
|
dokku run <app> <cmd>
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ Dokku is in active development. You can update the deployment step and the build
|
|||||||
|
|
||||||
To update the deploy step (this is updated less frequently):
|
To update the deploy step (this is updated less frequently):
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
cd ~/dokku
|
cd ~/dokku
|
||||||
git pull origin master
|
git pull origin master
|
||||||
sudo make install
|
sudo make install
|
||||||
@@ -16,7 +16,7 @@ Nothing needs to be restarted. Changes will take effect on the next push / deplo
|
|||||||
|
|
||||||
To update the build step:
|
To update the build step:
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
git clone https://github.com/progrium/buildstep.git
|
git clone https://github.com/progrium/buildstep.git
|
||||||
cd buildstep
|
cd buildstep
|
||||||
git pull origin master
|
git pull origin master
|
||||||
@@ -34,7 +34,7 @@ This should be summary of breaking changes between 0.1 and 0.2 version with inst
|
|||||||
|
|
||||||
software-properties-common is now a dependency for plugins. Before running dokku install script, make sure it is installed.
|
software-properties-common is now a dependency for plugins. Before running dokku install script, make sure it is installed.
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
> sudo apt-get install software-properties-common
|
> sudo apt-get install software-properties-common
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user