diff --git a/README.md b/README.md index be00681..97289d1 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ The build names are links to the `status_url` passed in when reporting builds. A ## Web UI -Visit , finding the actual `PASSWORD` in Heroku config: `h config:get WEB_PASSWORD -a ci-pipeline` +Visit , finding the actual `PASSWORD` in Heroku config: `k config:get pipeline WEB_PASSWORD` ## API @@ -110,20 +110,20 @@ A build is unlocked by posting to `/api/build/unlock` with the following attribu To run the app in production you need to set a few envs. - heroku config:set WEB_PASSWORD=your-password-here - heroku config:set SECRET_KEY_BASE=$(rake secret) + WEB_PASSWORD=your-password-here + SECRET_KEY_BASE=$(rake secret) Optionally you can use SSO instead of WEB_PASSWORD via the use of [jwt_authentication](https://github.com/barsoom/jwt_authentication), see that gem for docs. By default builds will go from "building" to "pending" after 60 minutes as some builds may have been killed in a bad way where the final status -was never reported. You can change this time like this: +was never reported. You can change this time with an env: - # heroku config:set BUILD_TIMEOUT_IN_MINUTES=120 + # BUILD_TIMEOUT_IN_MINUTES=120 -You can limit the amount of revisions, to keep the database size manageable: +You can limit the amount of revisions, to keep the database size manageable with an env: - # heroku config:set REVISIONS_TO_KEEP=1000 + # REVISIONS_TO_KEEP=1000 `REVISIONS_TO_KEEP` defaults to 500. diff --git a/config/environments/production.rb b/config/environments/production.rb index 1b10984..84138d4 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -3,7 +3,7 @@ Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. - production_hosts = [ "ci-pipeline.herokuapp.com", "pipeline.auctionet.dev", /10\.\d{1,3}\.\d{1,3}\.\d{1,3}/ ] + production_hosts = [ "pipeline.auctionet.dev", /10\.\d{1,3}\.\d{1,3}\.\d{1,3}/ ] config.hosts += production_hosts # Code is not reloaded between requests.