Skip to content

Commit

Permalink
Allow overriding the defaults for --live
Browse files Browse the repository at this point in the history
If you use `./startup.sh --live`, you should also be able to override
the locations of static or the content store using the normal
environment variables
  • Loading branch information
boffbowsh committed May 8, 2017
1 parent bd86fb0 commit 465915c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ bundle install
if [[ $1 == "--live" ]] ; then
GOVUK_APP_DOMAIN=www.gov.uk \
GOVUK_WEBSITE_ROOT=https://www.gov.uk \
PLEK_SERVICE_CONTENT_STORE_URI=https://www.gov.uk/api \
PLEK_SERVICE_STATIC_URI=assets.publishing.service.gov.uk \
PLEK_SERVICE_CONTENT_STORE_URI=${PLEK_SERVICE_CONTENT_STORE_URI-https://www.gov.uk/api} \
PLEK_SERVICE_STATIC_URI=${PLEK_SERVICE_STATIC_URI-assets.publishing.service.gov.uk} \
bundle exec rails s -p 3090
else
bundle exec rails s -p 3090
Expand Down

0 comments on commit 465915c

Please sign in to comment.