Run as superuser where appropriate, and fix up an example.

Pull request #25 introduced pulling the repositories as a normal user
and using sudo to esclate when necessary. This commit fixes broken
examples by adding sudo to the commands that will not work with limited
privileges. This commit also adds ./ to an example where needed.
This commit is contained in:
rhy-jot
2013-06-22 12:21:47 -07:00
parent dab5b7911b
commit 49ce9aa862

View File

@@ -21,7 +21,7 @@ By default it's set to whatever the hostname the host has.
You'll have to add a public key associated with a username as it says at the end of the bootstrapper. You'll do something
like this from your local machine:
$ cat ~/.ssh/id_rsa.pub | ssh root@progriumapp.com "gitreceive upload-key progrium"
$ cat ~/.ssh/id_rsa.pub | ssh progriumapp.com "sudo gitreceive upload-key progrium"
That's it!
@@ -57,7 +57,7 @@ may be set to override the defaults (see the bootstrap.sh script for how these a
$ wget j.mp/dokku-bootstrap
$ chmod +x bootstrap.sh
$ DOKKU_REPO=https://github.com/yourusername/dokku.git bootstrap.sh
$ sudo DOKKU_REPO=https://github.com/yourusername/dokku.git ./bootstrap.sh
## Upgrading
@@ -66,14 +66,14 @@ To update the deploy step (this is updated less frequently):
$ cd ~/dokku
$ git pull origin master
$ make install
$ sudo make install
More frequently, the build step is updated. This is where the app "stack" lives and where buildpacks
are supported. You can update this by running:
$ cd ~/dokku/buildstep
$ git pull origin master
$ make build
$ sudo make build
Nothing needs to be restarted. Changes will take effect on the next push / deployment.