Skip to content

Commit

Permalink
Add live flag consistent with government-frontend to startup.sh
Browse files Browse the repository at this point in the history
Allows you to run finder-frontend without running local dependencies, makes it super easy to
reproduce live issues locally.
  • Loading branch information
NickColley committed May 31, 2017
1 parent a0b5a63 commit 9895679
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion startup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#!/bin/bash

bundle install
bundle exec rails s -p 3062

if [[ $1 == "--live" ]] ; then
GOVUK_APP_DOMAIN=www.gov.uk \
GOVUK_WEBSITE_ROOT=https://www.gov.uk \
PLEK_SERVICE_SEARCH_URI=${PLEK_SERVICE_SEARCH_URI-https://www.gov.uk/api} \
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 3062
else
bundle exec rails s -p 3062
fi

0 comments on commit 9895679

Please sign in to comment.