forked from alphagov/collections
-
Notifications
You must be signed in to change notification settings - Fork 0
/
startup.sh
executable file
·37 lines (33 loc) · 1.91 KB
/
startup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
bundle check || bundle install
if [[ $1 == "--integration" ]] ; then
GOVUK_APP_DOMAIN=www.integration.publishing.service.gov.uk \
GOVUK_WEBSITE_ROOT=https://www.integration.publishing.service.gov.uk \
PLEK_SERVICE_CONTENT_STORE_URI=${PLEK_SERVICE_CONTENT_STORE_URI-https://www.integration.publishing.service.gov.uk/api} \
PLEK_SERVICE_STATIC_URI=${PLEK_SERVICE_STATIC_URI-assets.integration.publishing.service.gov.uk} \
PLEK_SERVICE_SEARCH_URI=${PLEK_SERVICE_SEARCH_URI-https://www.integration.publishing.service.gov.uk/api} \
bundle exec rails s -p 3070
elif [[ $1 == "--staging" ]] ; then
GOVUK_APP_DOMAIN=www.staging.publishing.service.gov.uk \
GOVUK_WEBSITE_ROOT=https://www.staging.publishing.service.gov.uk \
PLEK_SERVICE_CONTENT_STORE_URI=${PLEK_SERVICE_CONTENT_STORE_URI-https://www.staging.publishing.service.gov.uk/api} \
PLEK_SERVICE_STATIC_URI=${PLEK_SERVICE_STATIC_URI-assets.staging.publishing.service.gov.uk} \
PLEK_SERVICE_SEARCH_URI=${PLEK_SERVICE_SEARCH_URI-https://www.staging.publishing.service.gov.uk/api} \
bundle exec rails s -p 3070
elif [[ $1 == "--live" ]] ; then
GOVUK_APP_DOMAIN=www.gov.uk \
GOVUK_WEBSITE_ROOT=https://www.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} \
PLEK_SERVICE_SEARCH_URI=${PLEK_SERVICE_SEARCH_URI-https://www.gov.uk/api} \
bundle exec rails s -p 3070
elif [[ $1 == "--dummy" ]] ; then
GOVUK_APP_DOMAIN=www.gov.uk \
GOVUK_WEBSITE_ROOT=https://www.gov.uk \
PLEK_SERVICE_CONTENT_STORE_URI=${PLEK_SERVICE_CONTENT_STORE_URI-https://govuk-content-store-examples.herokuapp.com/api} \
PLEK_SERVICE_STATIC_URI=${PLEK_SERVICE_STATIC_URI-assets.publishing.service.gov.uk} \
PLEK_SERVICE_SEARCH_URI=${PLEK_SERVICE_SEARCH_URI-https://www.gov.uk/api} \
bundle exec rails s -p 3070
else
bundle exec rails s -p 3070
fi