Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.

Commit

Permalink
Add startup.sh
Browse files Browse the repository at this point in the history
Copied from government-frontend but with the port number changed.
  • Loading branch information
tijmenb committed Feb 16, 2018
1 parent e2f05d7 commit 34cff03
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -82,6 +82,15 @@ When you are in Development:

`bundle exec bowl calendars www`

Or locally:

```
./startup.sh --live
```

You can also run `./startup.sh` to run against a local running content-store and
`./startup.sh --dummy` for the dummy content-store.

### Running the test suite

`bundle exec rake`
Expand Down
21 changes: 21 additions & 0 deletions startup.sh
@@ -0,0 +1,21 @@
#!/bin/bash

bundle install

if [[ $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_RUMMAGER_URI=${PLEK_SERVICE_RUMMAGER_URI-https://www.gov.uk/api} \
bundle exec rails server -p 3011
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_RUMMAGER_URI=${PLEK_SERVICE_RUMMAGER_URI-https://www.gov.uk/api} \
bundle exec rails server -p 3011
else
bundle exec rails server -p 3011
fi

0 comments on commit 34cff03

Please sign in to comment.