diff options
author | Evan Read <eread@gitlab.com> | 2019-06-03 22:54:55 +0000 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2019-06-03 22:54:55 +0000 |
commit | 672a6238b53763e739f30f03d46e0d63f3c5ee16 (patch) | |
tree | a99743f92acbaf63316e8dd0e2b309b1a781b7ec | |
parent | 0c9885e656cb605bc9e536860fe3554d0a556cb2 (diff) | |
parent | 4ada0f8e80224d4ab7357ca969800e4847242a3a (diff) | |
download | gitlab-ce-672a6238b53763e739f30f03d46e0d63f3c5ee16.tar.gz |
Merge branch 'docs-herokuish-instead-of-bin-setup' into 'master'
Use /bin/herokuish in Auto DevOps docs examples
See merge request gitlab-org/gitlab-ce!28974
-rw-r--r-- | doc/topics/autodevops/index.md | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/topics/autodevops/index.md b/doc/topics/autodevops/index.md index 04938080539..b00a8afa386 100644 --- a/doc/topics/autodevops/index.md +++ b/doc/topics/autodevops/index.md @@ -582,16 +582,17 @@ Note that a post-install hook means that if any deploy succeeds, If present, `DB_MIGRATE` will be run as a shell command within an application pod as a helm pre-upgrade hook. -For example, in a Rails application: +For example, in a Rails application in an image built with +[Herokuish](https://github.com/gliderlabs/herokuish): -- `DB_INITIALIZE` can be set to `cd /app && RAILS_ENV=production - bin/setup` -- `DB_MIGRATE` can be set to `cd /app && RAILS_ENV=production bin/update` +- `DB_INITIALIZE` can be set to `RAILS_ENV=production /bin/herokuish procfile exec bin/rails db:setup` +- `DB_MIGRATE` can be set to `RAILS_ENV=production /bin/herokuish procfile exec bin/rails db:migrate` NOTE: **Note:** -The `/app` path is the directory of your project inside the docker image -as [configured by -Herokuish](https://github.com/gliderlabs/herokuish#paths) +Unless you have a `Dockerfile` in your repo, your image is built with +Herokuish. You must prefix commands run in these images with `/bin/herokuish +procfile exec` in order to replicate the the environment your application is +run in. ### Auto Monitoring |